Class: Protobug::Field::Fixed32Field

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

Instance Method Summary collapse

Methods inherited from IntegerField

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

Instance Method Details

#binary_pack ⇒ Object



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

def binary_pack
  "V"
end

#bit_length ⇒ Object



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

def bit_length
  32
end

#encoding ⇒ Object



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

def encoding
  :fixed
end

#signed ⇒ Object



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

def signed
  false
end

#wire_type ⇒ Object



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

def wire_type
  5
end