Package dev.restate.common
Interface Slice
public interface Slice
Wrapper type for byte slices.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbyte
byteAt
(int position) void
copyTo
(byte[] target) void
copyTo
(byte[] target, int targetOffset) void
copyTo
(ByteBuffer target) int
byte[]
static Slice
wrap
(byte[] bytes) static Slice
static Slice
wrap
(ByteBuffer byteBuffer) Wrap aByteBuffer
.
-
Field Details
-
EMPTY
-
-
Method Details
-
readableBytes
int readableBytes() -
copyTo
-
copyTo
void copyTo(byte[] target) -
copyTo
void copyTo(byte[] target, int targetOffset) -
byteAt
byte byteAt(int position) -
asReadOnlyByteBuffer
ByteBuffer asReadOnlyByteBuffer() -
toByteArray
byte[] toByteArray() -
wrap
Wrap aByteBuffer
. This will not copy the buffer. -
wrap
-
wrap
-