long contentLength = ss.length();
if(contentLength > 0) {
bufferSize = (int) Math.min(contentLength, bufferSize);
}
IGVSeekableBufferedStream bufferedStream = new IGVSeekableBufferedStream(ss, bufferSize);
bufferedStream.seek(chrPos);
reader = new LittleEndianInputStream(bufferedStream);
int nBytes = reader.readInt();
byte[] compressedBytes = new byte[nBytes];
bufferedStream.readFully(compressedBytes);
byte[] bytes = compressionUtils.decompress(compressedBytes);
ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
reader = new LittleEndianInputStream(bis);