toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.datastructure
/
ByteRingBuffer
Byte
Ring
Buffer
open
class
ByteRingBuffer
(
val
bits
:
Int
)
Inheritors
RingBuffer
Members
Constructors
Byte
Ring
Buffer
Link copied to clipboard
constructor
(
bits
:
Int
)
Properties
available
Read
Link copied to clipboard
var
availableRead
:
Int
available
Read
Before
Wrap
Link copied to clipboard
val
availableReadBeforeWrap
:
Int
available
Write
Link copied to clipboard
var
availableWrite
:
Int
available
Write
Before
Wrap
Link copied to clipboard
val
availableWriteBeforeWrap
:
Int
bits
Link copied to clipboard
val
bits
:
Int
internal
Buffer
Link copied to clipboard
val
internalBuffer
:
ByteArray
internal
Read
Pos
Link copied to clipboard
val
internalReadPos
:
Int
internal
Write
Pos
Link copied to clipboard
val
internalWritePos
:
Int
total
Size
Link copied to clipboard
val
totalSize
:
Int
Functions
clear
Link copied to clipboard
fun
clear
(
)
content
Hash
Code
Link copied to clipboard
fun
contentHashCode
(
)
:
Int
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
internal
Read
Skip
Link copied to clipboard
fun
internalReadSkip
(
count
:
Int
)
internal
Write
Skip
Link copied to clipboard
fun
internalWriteSkip
(
count
:
Int
)
peek
Link copied to clipboard
fun
peek
(
offset
:
Int
=
0
)
:
Byte
fun
peek
(
data
:
ByteArray
,
offset
:
Int
=
0
,
size
:
Int
=
data.size - offset
)
:
Int
read
Link copied to clipboard
@
JvmOverloads
fun
read
(
data
:
ByteArray
,
offset
:
Int
=
0
,
size
:
Int
=
data.size - offset
)
:
Int
read
Byte
Link copied to clipboard
fun
readByte
(
)
:
Int
read
Bytes
Link copied to clipboard
fun
readBytes
(
count
:
Int
)
:
ByteArray
skip
Link copied to clipboard
fun
skip
(
size
:
Int
)
:
Int
write
Link copied to clipboard
fun
write
(
consume
:
ByteRingBuffer
)
@
JvmOverloads
fun
write
(
data
:
ByteArray
,
offset
:
Int
=
0
,
size
:
Int
=
data.size - offset
)
:
Int
write
Byte
Link copied to clipboard
fun
writeByte
(
v
:
Int
)
:
Boolean
write
Head
Link copied to clipboard
@
JvmOverloads
fun
writeHead
(
data
:
ByteArray
,
offset
:
Int
=
0
,
size
:
Int
=
data.size - offset
)
:
Int