ByteUtil class
Constructors
- ByteUtil()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
calH0Size(
List< int> bytes) → int - Given 4 bytes, the high bit of each byte is 0, calculate its size
-
calH1Size(
List< int> bytes) → int - Given 4 bytes, the high bit of each byte is 1, calculate its size
-
toH0Bytes(
int size) → List< int> - Convert the given size to 4 bytes, the high bit of each byte is 0
-
toH1Bytes(
int size) → List< int> - Convert the given size to 4 bytes, the high bit of each byte is 1
-
trim(
List< int> bytes) → List<int> - Remove a series of 0x00 in the header and footer
-
trimEnd(
List< int> bytes) → List<int> - Remove a series of 0x00 in the footer
-
trimStart(
List< int> bytes) → List<int> - Remove a series of 0x00 in the header