B
- Bytes typeU
- Underlying typepublic interface Byteable<B extends BytesStore<B,U>,U>
Modifier and Type | Method and Description |
---|---|
default long |
address() |
@Nullable BytesStore<B,U> |
bytesStore() |
void |
bytesStore(@NotNull BytesStore<B,U> bytesStore,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
default FileLock |
lock(boolean shared)
Calls lock on the underlying file
|
long |
maxSize() |
long |
offset() |
default FileLock |
tryLock(boolean shared)
Calls lock on the underlying file
|
void bytesStore(@NotNull @NotNull BytesStore<B,U> bytesStore, long offset, long length) throws IllegalStateException, IllegalArgumentException, BufferOverflowException, BufferUnderflowException
bytesStore
- the fix point ByteStoreoffset
- the offset within the ByteStorelength
- the length in the ByteStoreIllegalStateException
IllegalArgumentException
BufferOverflowException
BufferUnderflowException
@Nullable @Nullable BytesStore<B,U> bytesStore()
long offset()
default long address() throws UnsupportedOperationException
UnsupportedOperationException
- if not set ot the underlying byteStore isn't native.long maxSize()
default FileLock lock(boolean shared) throws IOException
shared
- if the lock is shared or not.IOException
default FileLock tryLock(boolean shared) throws IOException
shared
- if the lock is shared or not.IOException
Copyright © 2022. All rights reserved.