read4Byte static method

int read4Byte(
  1. List stream
)

Implementation

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

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

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