Package dev.vortex.io
Interface PooledReadable.PositionalStream
- All Superinterfaces:
AutoCloseable,Closeable
- Enclosing class:
- PooledReadable
One handle on the source, used by at most one read at a time.
-
Method Summary
Modifier and TypeMethodDescriptionvoidreadFully(long position, ByteBuffer buffer, PooledReadable.ScratchBytes scratch) Fillsbuffercompletely from absoluteposition, in as few requests to storage as possible: Vortex has already coalesced neighbouring reads into this one.
-
Method Details
-
readFully
void readFully(long position, ByteBuffer buffer, PooledReadable.ScratchBytes scratch) throws IOException Fillsbuffercompletely from absoluteposition, in as few requests to storage as possible: Vortex has already coalesced neighbouring reads into this one.Implementations limited to
byte[]APIs should stage throughscratchrather than allocate.- Throws:
IOException
-