Class: Protobug::Field::UInt32Field

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

#bit_length ⇒ Object



671
672
673
# File 'lib/protobug/field.rb', line 671

def bit_length
  32
end

#encoding ⇒ Object



667
668
669
# File 'lib/protobug/field.rb', line 667

def encoding
  :varint
end

#signed ⇒ Object



675
676
677
# File 'lib/protobug/field.rb', line 675

def signed
  false
end

#wire_type ⇒ Object



679
680
681
# File 'lib/protobug/field.rb', line 679

def wire_type
  0
end