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 8
def __bson_load__(io, array = new)
  # Swallow the first four (length) bytes
  io.read 4

  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.