public class PossiblyCompressedBuf extends Object implements BackingBuf
| Constructor and Description |
|---|
PossiblyCompressedBuf(Cursor parent,
long base,
int compressedLen,
int uncompressedLen) |
| Modifier and Type | Method and Description |
|---|---|
BackingBuf |
duplicate() |
long |
getLimit() |
boolean |
hasLimit() |
ByteBuffer |
read(long off,
long len)
Reads bytes from the backing store
|
public PossiblyCompressedBuf(Cursor parent, long base, int compressedLen, int uncompressedLen)
public ByteBuffer read(long off, long len) throws IOException
BackingBufread in interface BackingBufoff - Offset into the backing storelen - Requested lengthIOException - Exception if backing store failspublic boolean hasLimit()
throws IOException
hasLimit in interface BackingBufIOExceptionpublic long getLimit()
throws IOException
getLimit in interface BackingBufIOExceptionpublic BackingBuf duplicate()
duplicate in interface BackingBufCopyright © 2019. All rights reserved.