InputFileStream.withFileHandle constructor

InputFileStream.withFileHandle(
  1. AbstractFileHandle fh, {
  2. int byteOrder = LITTLE_ENDIAN,
  3. int bufferSize = FileBuffer.kDefaultBufferSize,
})

Implementation

InputFileStream.withFileHandle(
  AbstractFileHandle fh, {
  this.byteOrder = LITTLE_ENDIAN,
  int bufferSize = FileBuffer.kDefaultBufferSize,
})  : _file = FileBuffer(fh),
      _fileOffset = 0,
      _position = 0 {
  _fileSize = _file.length;
}