BsonBinary class
Constructors
- BsonBinary(int length, {int? subType})
-
BsonBinary.from(Iterable<
int> byteList, {int? subType}) - BsonBinary.fromBuffer(BsonBinary buffer)
-
factory
-
BsonBinary.fromEJson(Map<
String, dynamic> eJsonMap) -
factory
- BsonBinary.fromHexString(String hexString, {int? subType})
Properties
- byteArray → ByteData
-
no setter
- byteList → Uint8List
-
no setter
- clone → BsonBinary
-
Returns a copy of this BsonBinary.
Also the offset is set like the original.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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
- totalByteLength → int
-
no setter
- typeByte → int
-
no setter
- value → dynamic
-
no setter
Methods
-
atEnd(
) → bool -
byteLength(
) → int -
inherited
-
eJson(
{bool relaxed = false}) → dynamic -
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 -
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 = Endian.little}) → void - Insert the required bytes starting from offset
-
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
Endian used is
little
-
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.
override
Static Methods
-
createTokens(
) → List< int?> -
extractData(
BsonBinary buffer) → BsonBinaryData -
extractEJson(
Map< String, dynamic> eJsonMap) → BsonBinaryData
Constants
- bufferSize → const int
- 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
- subtypeBinary → const int
- subtypeBinaryOld → const int
- subtypeFunction → const int
- subtypeLegacyUuid → const int
- subtypeMd5 → const int
- subtypeUserDefined → const int
- subtypeUuid → const int
- subtypeUuidOld → const int