Module utils

Module utils 

Source

Structs§

UtilBufWrapper
A wrapper for a byte array buffer. The total field is the number of bytes used in the buffer. The buffer field is the byte array. The buffer field is split at the total field to get the used bytes.

Functions§

const_i128_to_str
Converts an i128 to a str as a byte array. The buffer is 40 bytes long. The maximum number of digits in an i128 is 39. The first byte is a ‘-’ if the number is negative.
const_u128_to_str
Converts a u128 to a str as a byte array. The buffer is 39 bytes long. The maximum number of digits in a u128 is 39.