calH1Size static method
Given 4 bytes, the high bit of each byte is 1, calculate its size
- bytes: bytes which length is 4
int size = bytes[3] + (bytes[2] << 8) + (bytes[1] << 16) + (bytes[0] << 24);
Implementation
static int calH1Size(List<int> bytes) {
assert(bytes.length == 4);
int size = bytes[3] + (bytes[2] << 8) + (bytes[1] << 16) + (bytes[0] << 24);
return size;
}