toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.datastructure
/
ShortRingBuffer
Short
Ring
Buffer
class
ShortRingBuffer
(
val
bits
:
Int
)
Members
Constructors
Short
Ring
Buffer
Link copied to clipboard
constructor
(
bits
:
Int
)
Properties
available
Read
Link copied to clipboard
var
availableRead
:
Int
available
Write
Link copied to clipboard
var
availableWrite
:
Int
bits
Link copied to clipboard
val
bits
:
Int
total
Size
Link copied to clipboard
val
totalSize
:
Int
Functions
clear
Link copied to clipboard
fun
clear
(
)
clone
Link copied to clipboard
fun
clone
(
)
:
ShortRingBuffer
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
peek
Link copied to clipboard
fun
peek
(
offset
:
Int
=
0
)
:
Short
read
Link copied to clipboard
@
JvmOverloads
fun
read
(
data
:
ShortArray
,
offset
:
Int
=
0
,
size
:
Int
=
data.size - offset
)
:
Int
read
One
Link copied to clipboard
fun
readOne
(
)
:
Short
write
Link copied to clipboard
@
JvmOverloads
fun
write
(
data
:
ShortArray
,
offset
:
Int
=
0
,
size
:
Int
=
data.size - offset
)
:
Int
write
Head
Link copied to clipboard
@
JvmOverloads
fun
writeHead
(
data
:
ShortArray
,
offset
:
Int
=
0
,
size
:
Int
=
data.size - offset
)
:
Int
write
One
Link copied to clipboard
fun
writeOne
(
value
:
Short
)