toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.stream
/
BufferedStreamBase
Buffered
Stream
Base
class
BufferedStreamBase
(
val
base
:
AsyncStreamBase
,
val
blockSize
:
Int
=
2048
,
val
blocksToRead
:
Int
=
16
)
:
AsyncStreamBase
Members
Members & Extensions
Constructors
Buffered
Stream
Base
Link copied to clipboard
constructor
(
base
:
AsyncStreamBase
,
blockSize
:
Int
=
2048
,
blocksToRead
:
Int
=
16
)
Properties
base
Link copied to clipboard
val
base
:
AsyncStreamBase
block
Size
Link copied to clipboard
val
blockSize
:
Int
=
2048
blocks
To
Read
Link copied to clipboard
val
blocksToRead
:
Int
=
16
cached
Data
Link copied to clipboard
var
cachedData
:
ByteArray
cached
Sector
Link copied to clipboard
var
cachedSector
:
Long
Functions
_read
Link copied to clipboard
suspend
fun
_read
(
position
:
Long
,
buffer
:
ByteArray
,
offset
:
Int
,
len
:
Int
)
:
Int
close
Link copied to clipboard
open
suspend override
fun
close
(
)
get
Length
Link copied to clipboard
open
suspend override
fun
getLength
(
)
:
Long
has
Length
Link copied to clipboard
open
suspend
fun
hasLength
(
)
:
Boolean
read
Link copied to clipboard
open
suspend override
fun
read
(
position
:
Long
,
buffer
:
ByteArray
,
offset
:
Int
,
len
:
Int
)
:
Int
read
Bytes
Link copied to clipboard
suspend
fun
AsyncStreamBase
.
readBytes
(
position
:
Long
,
count
:
Int
)
:
ByteArray
set
Length
Link copied to clipboard
open
suspend override
fun
setLength
(
value
:
Long
)
to
Async
Stream
Link copied to clipboard
fun
AsyncBaseStream
.
toAsyncStream
(
)
:
AsyncStream
fun
AsyncStreamBase
.
toAsyncStream
(
position
:
Long
=
0
)
:
AsyncStream
to
Sync
Or
Null
Link copied to clipboard
fun
AsyncStreamBase
.
toSyncOrNull
(
)
:
SyncStreamBase
?
write
Link copied to clipboard
open
suspend override
fun
write
(
position
:
Long
,
buffer
:
ByteArray
,
offset
:
Int
,
len
:
Int
)