public interface BytesStore
| Modifier and Type | Method and Description |
|---|---|
long |
address() |
Bytes |
bytes()
Create a bytes whose content is the whole bytes store.
|
Bytes |
bytes(long offset,
long length)
|
File |
file() |
void |
free() |
ObjectSerializer |
objectSerializer() |
long |
size() |
Bytes bytes()
bytes(0, size()) call.bytes(long, long)Bytes bytes(long offset, long length)
Bytes object with start address of
address+ offset and capacity of length.
If this BytesStore is Bytes itself rather than natural
BytesStore object, this method will offset the new bytes from the
bytes' start, not from bytes' position like
BytesCommon.slice(long, long).
offset should be non-negative, length should be positive,
offset + length should be less or equal to size.
offset - offset of the new bytes from the bytes store addresslength - capacity and limit of the new bytesBytesbytes()long address()
long size()
void free()
ObjectSerializer objectSerializer()
File file()
Copyright © 2019. All rights reserved.