toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.datastructure
/
ByteArrayDeque
Byte
Array
Deque
class
ByteArrayDeque
(
val
initialBits
:
Int
=
10
,
val
allowGrow
:
Boolean
=
true
)
Members
Constructors
Byte
Array
Deque
Link copied to clipboard
constructor
(
initialBits
:
Int
=
10
,
allowGrow
:
Boolean
=
true
)
Properties
allow
Grow
Link copied to clipboard
val
allowGrow
:
Boolean
=
true
available
Read
Link copied to clipboard
val
availableRead
:
Int
available
Write
Without
Allocating
Link copied to clipboard
val
availableWriteWithoutAllocating
:
Int
buffer
Size
Link copied to clipboard
val
bufferSize
:
Int
has
More
To
Read
Link copied to clipboard
val
hasMoreToRead
:
Boolean
has
More
To
Write
Link copied to clipboard
val
hasMoreToWrite
:
Boolean
initial
Bits
Link copied to clipboard
val
initialBits
:
Int
=
10
read
Link copied to clipboard
var
read
:
Long
written
Link copied to clipboard
var
written
:
Long
Functions
clear
Link copied to clipboard
fun
clear
(
)
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
peek
Link copied to clipboard
fun
peek
(
buffer
:
ByteArray
,
offset
:
Int
=
0
,
size
:
Int
=
buffer.size - offset
)
:
Int
read
Link copied to clipboard
@
JvmOverloads
fun
read
(
buffer
:
ByteArray
,
offset
:
Int
=
0
,
size
:
Int
=
buffer.size - offset
)
:
Int
read
Byte
Link copied to clipboard
fun
readByte
(
)
:
Int
read
One
Link copied to clipboard
fun
readOne
(
)
:
Byte
skip
Link copied to clipboard
fun
skip
(
count
:
Int
)
:
Int
write
Link copied to clipboard
@
JvmOverloads
fun
write
(
buffer
:
ByteArray
,
offset
:
Int
=
0
,
size
:
Int
=
buffer.size - offset
)
:
Int
write
Byte
Link copied to clipboard
fun
writeByte
(
v
:
Int
)
:
Boolean
write
Head
Link copied to clipboard
@
JvmOverloads
fun
writeHead
(
buffer
:
ByteArray
,
offset
:
Int
=
0
,
size
:
Int
=
buffer.size - offset
)
:
Int
write
One
Link copied to clipboard
fun
writeOne
(
value
:
Byte
)