tools library
Tools.
Classes
Constants
- NANOS_IN_A_SECOND → const int
Properties
- isontheweb → bool
-
Whether this code is running on the Web platform.
final
Functions
-
aresamebytes(
List< int> b1, List<int> b2) → bool -
bigint_as_the_twos_compliment_bitstring(
BigInt x, {required int bit_size}) → String -
bitstring_as_the_bytes(
String bitstring) → Uint8List -
[bitstring].length
must be a multiple of 8. -
bytes_as_the_bitstring(
Iterable< int> bytes) → String -
bytesasahexstring(
List< int> bytes) → String -
find_leb128bytes(
Uint8List bytes, int start_i) → FindLeb128BytesTuple - Finds where the leb128 bytes finish in a list of bytes. Returns a FindLeb128BytesTuple.
-
get_current_time_nanoseconds(
) → BigInt -
get_current_time_seconds(
) → BigInt -
get_type_name_of_the_toString(
String str) → String -
hexstringasthebytes(
String hex) → Uint8List -
milliseconds_of_the_nanos(
BigInt nanos) → BigInt -
seconds_of_the_nanos(
BigInt nanos) → BigInt -
twos_compliment_bitstring_as_the_bigint(
String bit_string, {required int bit_size}) → BigInt
Typedefs
-
FindLeb128BytesTuple
= Tuple2<
Uint8List, int> -
The return type of the find_leb128bytes function. The
item1
is the leb128 bytes, and theitem2
is thestart_i
+item1.length
.