module BSON::Array::ClassMethods
def from_bson(buffer, **options)
- See: http://bsonspec.org/#/specification -
Returns:
-
(Array)
- The decoded array.
Options Hash:
(**options)
-
:mode
(nil | :bson
) -- Decoding mode to use.
Parameters:
-
buffer
(ByteBuffer
) -- The byte buffer.
Other tags:
- Note: - If the argument cannot be parsed, an exception will be raised
def from_bson(buffer, **options) if buffer.respond_to?(:get_array) buffer.get_array(**options) else parse_array_from_buffer(buffer, **options) end end