Sha256: e2b2229e84036361006ec670f25f31e988b31ece42534aaf12dc76585b7efa24

Contents?: true

Size: 430 Bytes

Versions: 6

Compression:

Stored size: 430 Bytes

Contents

require 'pio/open_flow10/match'

module Pio
  module OpenFlow10
    # Pio::MatchFormat wrapper.
    class Match10 < BinData::Primitive
      endian :big

      string :match,
             read_length: 40,
             initial_value: Pio::OpenFlow10::Match.new.to_binary_s

      def set(object)
        self.match = object.to_binary_s
      end

      def get
        Pio::OpenFlow10::Match.read match
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pio-0.30.1 lib/pio/open_flow10/match10.rb
pio-0.30.0 lib/pio/open_flow10/match10.rb
pio-0.29.0 lib/pio/open_flow10/match10.rb
pio-0.28.1 lib/pio/open_flow10/match10.rb
pio-0.28.0 lib/pio/open_flow10/match10.rb
pio-0.27.2 lib/pio/open_flow10/match10.rb