lib/bson/array.rb
# Deserialize the array from BSON.
#
# @param [ BSON ] bson The bson representing an array.
#
# @return [ Array ] The decoded array.
#
# @see http://bsonspec.org/#/specification
#
# @since 2.0.0
Deserialize the array from BSON.
Deserialize the array from BSON .
def from_bson(bson)
        array = new
        bson.read(4) 
        while (type = bson.readbyte.chr) != NULL_BYTE
          bson.gets(NULL_BYTE)
          array << BSON::Registry.get(type).from_bson(bson)
        end
        array
      end
def from_bson ( bson ) array = new bson . read ( 4 ) while ( type = bson . readbyte . chr ) != NULL_BYTE bson . gets ( NULL_BYTE ) array << BSON :: Registry . get ( type ) . from_bson ( bson ) end array end
Deserialize the array from BSON.
Deserialize the array from BSON .
# throw away the length
The decoded array.
The decoded array .
 Array 
bson
bson The bson representing an array.
bson The bson representing an array .
see
None
since
None