readInt method

int readInt({
  1. bool signed = true,
  2. int bits = 64,
})

Implementation

int readInt({bool signed = true, int bits = 64}) =>
    (signed && !readBit()) ? -readBits(bits) : readBits(bits);