toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.stream
/
AsyncStreamBase
Async
Stream
Base
open
class
AsyncStreamBase
:
AsyncCloseable
,
AsyncRAInputStream
,
AsyncRAOutputStream
,
AsyncLengthStream
Inheritors
SliceAsyncStreamBase
BufferedStreamBase
SyncAsyncStreamBase
SyncAsyncStreamBaseInWorker
MemoryAsyncStreamBase
BlobAsyncBaseStream
DenoAsyncStreamBase
Members
Members & Extensions
Constructors
Async
Stream
Base
Link copied to clipboard
constructor
(
)
Functions
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
)