frameSizeIn3Bytes static method

List<int> frameSizeIn3Bytes(
  1. int value
)

Implementation

static List<int> frameSizeIn3Bytes(int value) {
  assert(value <= 16777216);

  final block = List<int>.filled(3, 0);

  block[0] = (value >> 16);
  block[1] = (value >> 8);
  block[2] = (value >> 0);

  return block;
}