Interface SubBuffer<A>
- All Superinterfaces:
ArrayReadable<A>, ArrayWritable<A>, Buffer<A>, BufferLike<A>, HasArrayOps<A>, ReadableChannelFactory<A>, ReadableChannelSource<A>, SeekableReadableChannelSource<A>
- All Known Implementing Classes:
BufferOverReadableChannel.BufferView, SubBufferImpl
-
Method Summary
Modifier and TypeMethodDescriptiondefault Objectget(long index) default longBuffers with 'unlimited' capacity should return Long.MAX_VALUElonglonggetStart()default voiddefault intslice(long offset, long length) Create a sub-buffer view of this bufferdefault voidThe method that needs to be implemented; all other methods default-delegate to this one.Methods inherited from interface ArrayReadable
newReadableChannel, readIntoRaw, sizeMethods inherited from interface ArrayWritable
write, writeMethods inherited from interface SeekableReadableChannelSource
newReadableChannel, newReadableChannel, newReadableChannel
-
Method Details
-
getBackend
-
getStart
long getStart() -
getLength
long getLength() -
write
default void write(long offsetInBuffer, A arrayWithItemsOfTypeT, int arrOffset, int arrLength) throws IOException Description copied from interface:ArrayWritableThe method that needs to be implemented; all other methods default-delegate to this one.- Specified by:
writein interfaceArrayWritable<A>- Throws:
IOException
-
readInto
- Specified by:
readIntoin interfaceArrayReadable<A>- Throws:
IOException
-
getCapacity
default long getCapacity()Description copied from interface:BufferLikeBuffers with 'unlimited' capacity should return Long.MAX_VALUE- Specified by:
getCapacityin interfaceBufferLike<A>
-
getArrayOps
- Specified by:
getArrayOpsin interfaceHasArrayOps<A>
-
slice
-
put
- Specified by:
putin interfaceArrayWritable<A>
-
get
- Specified by:
getin interfaceArrayReadable<A>
-