toggle menu
kord
0.16.0-SNAPSHOT
jvm
switch theme
search in API
kord-voice
/
dev.kord.voice.io
/
MutableByteArrayCursor
Mutable
Byte
Array
Cursor
class
MutableByteArrayCursor
(
data
:
ByteArray
)
(
source
)
A light-weight mutable cursor for a ByteArray.
Members
Members & Extensions
Constructors
Mutable
Byte
Array
Cursor
Link copied to clipboard
constructor
(
data
:
ByteArray
)
Properties
cursor
Link copied to clipboard
var
cursor
:
Int
data
Link copied to clipboard
var
data
:
ByteArray
is
Exhausted
Link copied to clipboard
val
isExhausted
:
Boolean
remaining
Link copied to clipboard
val
remaining
:
Int
Functions
reset
Link copied to clipboard
fun
reset
(
)
resize
Link copied to clipboard
fun
resize
(
newSize
:
Int
,
ifSmaller
:
Boolean
=
false
)
:
Boolean
write
Byte
Link copied to clipboard
fun
writeByte
(
b
:
Byte
)
write
Byte
Array
Link copied to clipboard
fun
writeByteArray
(
array
:
ByteArray
,
offset
:
Int
=
0
,
length
:
Int
=
array.size
)
write
Byte
Array
Or
Resize
Link copied to clipboard
fun
MutableByteArrayCursor
.
writeByteArrayOrResize
(
data
:
ByteArray
)
write
Byte
View
Link copied to clipboard
fun
writeByteView
(
view
:
ByteArrayView
)
write
Byte
View
Or
Resize
Link copied to clipboard
fun
MutableByteArrayCursor
.
writeByteViewOrResize
(
view
:
ByteArrayView
)
write
Int
Link copied to clipboard
fun
writeInt
(
i
:
Int
)
write
Short
Link copied to clipboard
fun
writeShort
(
s
:
Short
)