Class: Protobug::Field::SInt32Field

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



689
690
691
# File 'lib/protobug/field.rb', line 689

def bit_length
  32
end

#encoding ⇒ Object



685
686
687
# File 'lib/protobug/field.rb', line 685

def encoding
  :zigzag
end

#signed ⇒ Object



693
694
695
# File 'lib/protobug/field.rb', line 693

def signed
  true
end

#wire_type ⇒ Object



697
698
699
# File 'lib/protobug/field.rb', line 697

def wire_type
  0
end