Buffer class
Methods
-
checkIEEE754(Buffer buf, double value, int offset, int ext, double max, double min)
→ void
-
-
compareInstance(dynamic target, [int? start, int? end, int? thisStart, int? thisEnd])
→ int
-
-
copy(Buffer target, [int targetStart = 0, int start = 0, int end = 0])
→ int
-
-
equals(dynamic b)
→ bool
-
-
fill(dynamic val, [int start = 0, int? end, String? encoding = 'utf8'])
→ Buffer
-
-
includes(dynamic val, int byteOffset, String encoding)
→ bool
-
-
indexOf(dynamic val, int byteOffset, [String? encoding])
→ int
-
-
inspect()
→ String
-
-
lastIndexOf(dynamic val, int byteOffset, [String? encoding])
→ int
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
readBigInt64BE(int offset)
→ BigInt
-
-
readBigInt64LE(int offset)
→ BigInt
-
-
readBigUInt64BE(int offset)
→ BigInt
-
-
readBigUInt64LE(int offset)
→ BigInt
-
-
readDoubleBE(int offset, [bool noAssert = false])
→ dynamic
-
-
readDoubleLE(int offset, [bool noAssert = false])
→ dynamic
-
-
readFloatBE(int offset, [bool noAssert = false])
→ dynamic
-
-
readFloatLE(int offset, [bool noAssert = false])
→ int
-
-
readInt16BE(int offset, [bool noAssert = false])
→ int
-
-
readInt16LE(int offset, [bool noAssert = false])
→ int
-
-
readInt32BE(int offset, [bool noAssert = false])
→ int
-
-
readInt32LE(int offset, [bool noAssert = false])
→ int
-
-
readInt8(int offset, [bool noAssert = false])
→ int
-
-
readIntBE(int offset, int byteLength, [bool noAssert = false])
→ int
-
-
readIntLE(int offset, int byteLength, [bool noAssert = false])
→ int
-
-
readUInt16BE(int offset, [bool noAssert = false])
→ int
-
-
readUInt16LE(int offset, [bool noAssert = false])
→ int
-
-
readUInt32BE(int offset, [bool noAssert = false])
→ int
-
-
readUInt32LE(int offset, [bool noAssert = false])
→ int
-
-
readUInt8(int offset, [bool noAssert = false])
→ int
-
-
readUIntBE(int offset, int byteLength, [bool noAssert = false])
→ int
-
-
readUIntLE(int offset, int byteLength, [bool noAssert = false])
→ int
-
-
slice(int start, [int? end])
→ Buffer
-
-
slowBuffer(int length)
→ Buffer
-
-
slowToString([String? encoding = 'utf8', int? start = 0, int? end = 0])
→ String
-
-
swap(Buffer b, int n, int m)
→ void
-
-
swap16()
→ Buffer
-
-
swap32()
→ Buffer
-
-
swap64()
→ Buffer
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
toString_([Map<String, dynamic> arguments = const {}])
→ String
-
-
write(String string, {int offset = 0, int? length, String encoding = 'utf8'})
→ int
-
-
writeBigInt64BE(int value, [int offset = 0])
→ int
-
-
writeBigInt64LE(int value, [int offset = 0])
→ int
-
-
writeBigUInt64BE(int value, [int offset = 0])
→ int
-
-
writeBigUInt64LE(int value, [int offset = 0])
→ int
-
-
writeDouble(Buffer buf, double value, int offset, bool littleEndian, [bool noAssert = false])
→ int
-
-
writeDoubleBE(double value, int offset, [bool noAssert = false])
→ dynamic
-
-
writeDoubleLE(double value, int offset, [bool noAssert = false])
→ dynamic
-
-
writeFloat(Buffer buf, double value, int offset, bool littleEndian, [bool noAssert = false])
→ int
-
-
writeFloatBE(double value, int offset, [bool noAssert = false])
→ dynamic
-
-
writeFloatLE(double value, int offset, [bool noAssert = false])
→ dynamic
-
-
writeInt16BE(int value, int offset, [bool noAssert = false])
→ int
-
-
writeInt16LE(int value, int offset, [bool noAssert = false])
→ int
-
-
writeInt32BE(int value, int offset, [bool noAssert = false])
→ int
-
-
writeInt32LE(int value, int offset, [bool noAssert = false])
→ int
-
-
writeInt8(int value, int offset, [bool noAssert = false])
→ int
-
-
writeIntBE(int value, int offset, int byteLength, [bool noAssert = false])
→ int
-
-
writeIntLE(int value, int offset, int byteLength, [bool noAssert = false])
→ int
-
-
writeUInt16BE(int value, int offset, [bool noAssert = false])
→ int
-
-
writeUInt16LE(int value, int offset, [bool noAssert = false])
→ int
-
-
writeUInt32BE(int value, int offset, [bool noAssert = false])
→ int
-
-
writeUInt32LE(int value, int offset, [bool noAssert = false])
→ int
-
-
writeUInt8(int value, int offset, [bool noAssert = false])
→ int
-
-
writeUIntBE(int value, int offset, int byteLength, [bool noAssert = false])
→ int
-
-
writeUIntLE(int value, int offset, int byteLength, [bool noAssert = false])
→ int
-
-
wrtBigUInt64BE(Buffer buf, int value, int offset, int min, int max)
→ int
-
-
wrtBigUInt64LE(Buffer buf, int value, int offset, int min, int max)
→ int
-
Static Methods
-
alloc(int size, [dynamic fill, String? encoding])
→ Buffer
-
-
allocUnsafe(int size)
→ Buffer
-
-
byteLength(dynamic value, [String encoding = 'utf8', bool mustMatch = true])
→ int
-
-
compare(dynamic a, dynamic b)
→ int
-
-
concat(List<Buffer> list, [int length = 0])
→ Buffer
-
-
from(dynamic value, [int offset = 0, int length = 0, String encoding = 'utf8'])
→ Buffer
-
-
fromString(String string, [String? encoding])
→ Buffer
-
-
isBuffer(dynamic b)
→ bool
-
-
isEncoding(String encoding)
→ bool
-