BytesBufferLeb128Extension extension
LEB128 extension for BytesBuffer.
- on
Methods
-
readLeb128Block(
) → Uint8List - Reads a LEB128 bytes block.
-
readLeb128BlockTo(
BytesBuffer dst) → int -
Reads a LEB128 bytes block into
dst
. -
readLeb128SignedInt(
{int bits = 64}) → int - Reads a LEB128 signed integer.
-
readLeb128String(
{Encoding encoding = dart_convert.latin1}) → String - Reads a String inside a LEB128 bytes block.
-
readLeb128UnsignedInt(
) → int - Reads a LEB128 unsigned integer.
-
writeLeb128Block(
List< int> block) → int -
Writes a LEB128 bytes
block
. -
writeLeb128BlockFrom(
BytesBuffer src, [int? length]) → int -
Writes a LEB128 bytes
block
fromsrc
. -
writeLeb128SignedInt(
int n) → int - Write a LEB128 signed integer.
-
writeLeb128String(
String s, {Encoding encoding = dart_convert.latin1}) → int -
Writes String
s
inside a LEB128 bytes block. -
writeLeb128UnsignedInt(
int n) → int - Write a LEB128 unsigned integer.