BsonObject class
class BsonObject { int get typeByte{ throw "must be implemented";} int byteLength() => 0; packElement(String name, var buffer){ buffer.writeByte(typeByte); if (name != null){ new BsonCString(name).packValue(buffer); } packValue(buffer); } packValue(var buffer){ throw "must be implemented";} _ElementPair unpackElement(buffer){ _ElementPair result = new _ElementPair(); result.name = buffer.readCString(); unpackValue(buffer); result.value = value; return result; } unpackValue(var buffer){ throw "must be implemented";} get value=>null; }
Subclasses
BsonArray, BsonBinary, BsonBoolean, BsonDate, BsonDouble, BsonInt, BsonLong, BsonMap, BsonNull, BsonRegexp, BsonString, DBPointer, DbRef, MaxKey, MinKey, ObjectId, Timestamp
Properties
final value #
get value=>null;
Methods
dynamic packElement(String name, buffer) #
packElement(String name, var buffer){ buffer.writeByte(typeByte); if (name != null){ new BsonCString(name).packValue(buffer); } packValue(buffer); }
dynamic packValue(buffer) #
packValue(var buffer){ throw "must be implemented";}
_ElementPair unpackElement(buffer) #
_ElementPair unpackElement(buffer){ _ElementPair result = new _ElementPair(); result.name = buffer.readCString(); unpackValue(buffer); result.value = value; return result; }
dynamic unpackValue(buffer) #
unpackValue(var buffer){ throw "must be implemented";}