Methods

Class/Module Index [+]

Quicksearch

Moped::BSON::Extensions::Array::ClassMethods

Public Instance Methods

__bson_load__(io, array = new) click to toggle source
# File lib/moped/bson/extensions/array.rb, line 25
def __bson_load__(io, array = new)
  io.read(4) # Swallow the first four (length) bytes
  while (buf = io.readbyte) != 0
    io.gets(NULL_BYTE)
    array << Types::MAP[buf].__bson_load__(io)
  end
  array
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.