Module: ProtocolBuffers::Field::WireFormats::FIXED64

Included in:
DoubleField, Fixed64Field, Sfixed64Field
Defined in:
lib/protocol_buffers/runtime/field.rb

Instance Method Summary collapse

Instance Method Details

#deserialize(value) ⇒ Object



281
282
283
# File 'lib/protocol_buffers/runtime/field.rb', line 281

def deserialize(value)
  value.unpack(pack_code).first
end

#serialize(value) ⇒ Object



277
278
279
# File 'lib/protocol_buffers/runtime/field.rb', line 277

def serialize(value)
  [value].pack(pack_code)
end

#wire_typeObject



273
274
275
# File 'lib/protocol_buffers/runtime/field.rb', line 273

def wire_type
  WireTypes::FIXED64
end