Sha256: f1c2f4043a17eb752f7f22310a9eeed69675c05c8ad470873e623f13eee1c3e5

Contents?: true

Size: 323 Bytes

Versions: 130

Compression:

Stored size: 323 Bytes

Contents

require 'protobuf/field/uint32_field.rb'

module Protobuf
  module Field
    class Fixed32Field < Uint32Field
      def wire_type
       ::Protobuf::WireType::FIXED32
      end

      def decode(bytes)
        bytes.unpack('V').first
      end

      def encode(value)
        [value].pack('V')
      end
    end
  end
end

Version data entries

130 entries across 130 versions & 1 rubygems

Version Path
protobuf-2.8.13 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.12 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.11 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.10 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.9 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.8 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.7 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.6 lib/protobuf/field/fixed32_field.rb
protobuf-2.7.12 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.5 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.4 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.3 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.2 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.1 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta9-java lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta9 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta8-java lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta8 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta6-java lib/protobuf/field/fixed32_field.rb