read3Byte static method

int read3Byte(
  1. List stream
)

Implementation

static int read3Byte(List stream){
  var bl = [];

  for(int i = 0; i < 3; i++){
    bl.add(nextByte(stream));
  }

  return (bl[0] << 16) | (bl[1] << 8) | bl[2];
}