public abstract class AbstractReference extends Object implements Byteable, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected BytesStore |
bytes |
protected long |
offset |
| Constructor and Description |
|---|
AbstractReference() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acceptNewBytesStore(BytesStore bytes) |
long |
address() |
BytesStore |
bytesStore() |
void |
bytesStore(BytesStore bytes,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
void |
close() |
abstract long |
maxSize() |
long |
offset() |
@Nullable protected BytesStore bytes
protected long offset
public void bytesStore(@NotNull
BytesStore bytes,
long offset,
long length)
throws IllegalStateException,
IllegalArgumentException,
BufferOverflowException,
BufferUnderflowException
ByteablebytesStore in interface Byteablebytes - the fix point ByteStoreoffset - the offset within the ByteStorelength - the length in the ByteStoreIllegalStateExceptionIllegalArgumentExceptionBufferOverflowExceptionBufferUnderflowException@Nullable public BytesStore bytesStore()
bytesStore in interface Byteablepublic abstract long maxSize()
protected void acceptNewBytesStore(@NotNull
BytesStore bytes)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic long address()
Copyright © 2018. All rights reserved.