BsonBinary class

Inheritance

Constructors

BsonBinary(int length, {int? subType})
BsonBinary.from(Iterable<int> byteList, {int? subType})
BsonBinary.fromBuffer(BsonBinary buffer)
factory
BsonBinary.fromHexString(String hexString, {int? subType})

Properties

byteArray → ByteData
no setter
byteList → Uint8List
no setter
hashCode → int
The hash code for this object.
no setterinherited
hexString → String
no setter
offset ↔ int
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subType → int
no setter
typeByte → int
no setteroverride
value → dynamic
no setteroverride

Methods

atEnd() → bool
byteLength() → int
override
encodeInt(int position, int value, int numOfBytes, Endian endianness, bool signed) → void
makeByteList() → Uint8List
makeHexString() → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
packElement(String? name, BsonBinary buffer) → void
inherited
packValue(BsonBinary buffer) → void
override
readByte() → int
readCString() → String
readDouble() → double
readFixInt64() → Int64
Read an Int64 value
readInt32() → int
readInt64() → int
reverse(int numOfBytes) → void
rewind() → void
setIntExtended(int value, int numOfBytes, Endian endianness) → void
toString() → String
A string representation of this object.
override
writeByte(int value) → void
writeCString(String val) → void
writeDouble(double value) → void
writeFixInt64(Int64 value) → void
Write an Int64 field
writeInt(int value, {int numOfBytes = 4, dynamic endianness = Endian.little, bool signed = false}) → void
writeInt64(int value) → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

BUFFER_SIZE → int
final
bufferSize → int
final
SUBTYPE_BYTE_ARRAY → int
final
SUBTYPE_DEFAULT → int
final
SUBTYPE_FUNCTION → int
final
SUBTYPE_MD5 → int
final
SUBTYPE_USER_DEFINED → int
final
SUBTYPE_UUID → int
final
subtypeBinary → int
final
subtypeBinaryOld → int
final
subtypeFunction → int
final
subtypeUserDefined → int
final
subtypeUuid → int
final
subtypeUuidOld → int
final
tokens → List<int?>
final
useFixnum → bool
final

Static Methods

createTokens() → List<int?>
extractData(BsonBinary buffer) → BsonBinaryData

Constants

char0 → const int
char1 → const int
char2 → const int
char3 → const int
char4 → const int
char5 → const int
char6 → const int
char7 → const int
char8 → const int
char9 → const int
charA → const int
charB → const int
charC → const int
charD → const int
charE → const int
charF → const int