toggle menu
sdk-java
2.0.0
jvm
switch theme
search in API
common
/
dev.restate.common
/
Slice
Slice
interface
Slice
Wrapper type for byte slices.
Members
Properties
EMPTY
Link copied to clipboard
val
EMPTY
:
Slice
Functions
as
Read
Only
Byte
Buffer
Link copied to clipboard
abstract
fun
asReadOnlyByteBuffer
(
)
:
ByteBuffer
byte
At
Link copied to clipboard
abstract
fun
byteAt
(
position
:
Int
)
:
Byte
copy
To
Link copied to clipboard
abstract
fun
copyTo
(
target
:
Array
<
Byte
>
)
abstract
fun
copyTo
(
target
:
ByteBuffer
)
abstract
fun
copyTo
(
target
:
Array
<
Byte
>
,
targetOffset
:
Int
)
readable
Bytes
Link copied to clipboard
abstract
fun
readableBytes
(
)
:
Int
to
Byte
Array
Link copied to clipboard
abstract
fun
toByteArray
(
)
:
Array
<
Byte
>
wrap
Link copied to clipboard
open
fun
wrap
(
bytes
:
Array
<
Byte
>
)
:
Slice
open
fun
wrap
(
str
:
String
)
:
Slice
open
fun
wrap
(
byteBuffer
:
ByteBuffer
)
:
Slice
Wrap a
ByteBuffer
.