Class: Protobug::Field::Fixed32Field

Inherits:
IntegerField show all
Defined in:
lib/protobug/field.rb

Constant Summary

Constants inherited from Protobug::Field

PACKABLE_WIRE_TYPES

Instance Attribute Summary

Attributes inherited from Protobug::Field

#adder, #cardinality, #clearer, #haser, #ivar, #json_name, #name, #number, #oneof, #setter

Instance Method Summary collapse

Methods inherited from IntegerField

#binary_decode_one, #binary_encode_one, #default, #json_decode_one, #json_encode_one, #validate!

Methods inherited from Protobug::Field

#adder_method_definition, #binary_decode, #binary_encode, #initialize, #json_decode, #json_encode, #json_key_encode, #method_definitions, #optional?, #packed?, #pretty_print, #proto3_optional?, #repeated?, #to_text, #validate!

Constructor Details

This class inherits a constructor from Protobug::Field

Instance Method Details

#binary_packObject



719
720
721
# File 'lib/protobug/field.rb', line 719

def binary_pack
  "V"
end

#bit_lengthObject



707
708
709
# File 'lib/protobug/field.rb', line 707

def bit_length
  32
end

#encodingObject



703
704
705
# File 'lib/protobug/field.rb', line 703

def encoding
  :fixed
end

#signedObject



711
712
713
# File 'lib/protobug/field.rb', line 711

def signed
  false
end

#wire_typeObject



715
716
717
# File 'lib/protobug/field.rb', line 715

def wire_type
  5
end