deserialize method

Map<String, dynamic> deserialize(
  1. BsonBinary buffer
)

Implementation

Map<String, dynamic> deserialize(BsonBinary buffer) {
  buffer.offset = 0;
  if (buffer.byteList.length < 5) {
    throw Exception('corrupt bson message < 5 bytes long');
  }
  return BsonMap.extractData(buffer);
}