Class: Protobug::Field::UInt64Field

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

Direct Known Subclasses

BoolField

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



573
574
575
# File 'lib/protobug/field.rb', line 573

def bit_length
  64
end

#encoding ⇒ Object



569
570
571
# File 'lib/protobug/field.rb', line 569

def encoding
  :varint
end

#signed ⇒ Object



577
578
579
# File 'lib/protobug/field.rb', line 577

def signed
  false
end

#wire_type ⇒ Object



581
582
583
# File 'lib/protobug/field.rb', line 581

def wire_type
  0
end