Class: Protobug::Field::SFixed64Field

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



643
644
645
# File 'lib/protobug/field.rb', line 643

def binary_pack
  "q<"
end

#bit_length ⇒ Object



631
632
633
# File 'lib/protobug/field.rb', line 631

def bit_length
  64
end

#encoding ⇒ Object



627
628
629
# File 'lib/protobug/field.rb', line 627

def encoding
  :fixed
end

#signed ⇒ Object



635
636
637
# File 'lib/protobug/field.rb', line 635

def signed
  true
end

#wire_type ⇒ Object



639
640
641
# File 'lib/protobug/field.rb', line 639

def wire_type
  1
end