shouldRemoveLeadingZero function
- Uint8List bytes
Checks if the first byte in the provided bytes
is 0x0 and the second byte's most significant bit is set.
bytes
: The list of bytes to check.
Returns true if the first byte is 0x0 and the second byte's most significant bit is set; otherwise, false.
Implementation
bool shouldRemoveLeadingZero(Uint8List bytes) {
return bytes[0] == 0x0 && (bytes[1] & (1 << 7)) != 0;
}