InputFileStream.clone constructor

InputFileStream.clone(
  1. InputFileStream other, {
  2. int? position,
  3. int? length,
})

Implementation

InputFileStream.clone(InputFileStream other, {int? position, int? length})
    : byteOrder = other.byteOrder,
      _file = other._file,
      _fileOffset = other._fileOffset + (position ?? 0),
      _fileSize = length ?? other._fileSize,
      _position = 0;