Class: Protobug::Field::SFixed64Field

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

Constant Summary

Constants inherited from Protobug::Field

PACKABLE_WIRE_TYPES

Instance Attribute Summary

Attributes inherited from Protobug::Field

#adder, #cardinality, #clearer, #haser, #ivar, #json_name, #name, #number, #oneof, #setter

Instance Method Summary collapse

Methods inherited from IntegerField

#binary_decode_one, #binary_encode_one, #default, #json_decode_one, #json_encode_one, #validate!

Methods inherited from Protobug::Field

#adder_method_definition, #binary_decode, #binary_encode, #initialize, #json_decode, #json_encode, #json_key_encode, #method_definitions, #optional?, #packed?, #pretty_print, #proto3_optional?, #repeated?, #to_text, #validate!

Constructor Details

This class inherits a constructor from Protobug::Field

Instance Method Details

#binary_packObject



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

def binary_pack
  "q<"
end

#bit_lengthObject



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

def bit_length
  64
end

#encodingObject



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

def encoding
  :fixed
end

#signedObject



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

def signed
  true
end

#wire_typeObject



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

def wire_type
  1
end