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



240
241
242
# File 'lib/protocol_buffers/runtime/field.rb', line 240

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

#serialize(value) ⇒ Object



236
237
238
# File 'lib/protocol_buffers/runtime/field.rb', line 236

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

#wire_typeObject



232
233
234
# File 'lib/protocol_buffers/runtime/field.rb', line 232

def wire_type
  WireTypes::FIXED64
end