Class: Protobug::Field::SInt64Field

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



591
592
593
# File 'lib/protobug/field.rb', line 591

def bit_length
  64
end

#encoding ⇒ Object



587
588
589
# File 'lib/protobug/field.rb', line 587

def encoding
  :zigzag
end

#signed ⇒ Object



595
596
597
# File 'lib/protobug/field.rb', line 595

def signed
  true
end

#wire_type ⇒ Object



599
600
601
# File 'lib/protobug/field.rb', line 599

def wire_type
  0
end