Class: ProtocolBuffers::Field::Sint64Field
- Inherits:
-
Int64Field
- Object
- ProtocolBuffers::Field
- NumericField
- VarintField
- SignedVarintField
- Int64Field
- ProtocolBuffers::Field::Sint64Field
- Defined in:
- lib/protocol_buffers/runtime/field.rb
Instance Attribute Summary
Attributes inherited from ProtocolBuffers::Field
Instance Method Summary collapse
Methods inherited from Int64Field
Methods inherited from VarintField
Methods included from WireFormats::VARINT
Methods inherited from NumericField
#check_value, #default_value, #max, #min
Methods inherited from ProtocolBuffers::Field
#add_methods_to, #check_valid, #check_value, create, #initialize, #inspect_value, #repeated?, #valid_type?
Instance Method Details
#deserialize(value) ⇒ Object
419 420 421 |
# File 'lib/protocol_buffers/runtime/field.rb', line 419 def deserialize(value) Varint.decodeZigZag64(value) end |
#serialize(value) ⇒ Object
415 416 417 |
# File 'lib/protocol_buffers/runtime/field.rb', line 415 def serialize(value) Varint.encodeZigZag64(value) end |