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.0.beta6 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta5-java lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta5 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta4-java lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta4 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta3-java lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta3 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta2-java lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta2 lib/protobuf/field/fixed32_field.rb
protobuf-2.7.11-java lib/protobuf/field/fixed32_field.rb
protobuf-2.7.11 lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta1-java lib/protobuf/field/fixed32_field.rb
protobuf-2.8.0.beta1 lib/protobuf/field/fixed32_field.rb
protobuf-2.7.10-java lib/protobuf/field/fixed32_field.rb
protobuf-2.7.10 lib/protobuf/field/fixed32_field.rb
protobuf-2.7.9-java lib/protobuf/field/fixed32_field.rb
protobuf-2.7.9 lib/protobuf/field/fixed32_field.rb
protobuf-2.7.8-java lib/protobuf/field/fixed32_field.rb
protobuf-2.7.8 lib/protobuf/field/fixed32_field.rb
protobuf-2.7.7-java lib/protobuf/field/fixed32_field.rb