Parent

Class/Module Index [+]

Quicksearch

Moped::BSON::Timestamp

Public Class Methods

__bson_load__(io) click to toggle source
# File lib/moped/bson/timestamp.rb, line 5
def __bson_load__(io)
  new(*io.read(8).unpack('l2').reverse)
end

Public Instance Methods

__bson_dump__(io, key) click to toggle source
# File lib/moped/bson/timestamp.rb, line 10
def __bson_dump__(io, key)
  io << [17, key, increment, seconds].pack('cZ*l2')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.