DataStream

class DataStream(data: ByteArray) : Stream

Stream implementation backed by Data

Constructors

Link copied to clipboard
constructor(data: ByteArray)

Properties

Link copied to clipboard
internal val rawPtr: Long

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun flush(): Long

Flush the stream

Link copied to clipboard
open override fun read(buffer: ByteArray, length: Long): Long

Read data from the stream

Link copied to clipboard
open override fun seek(offset: Long, mode: Int): Long

Seek to a position in the stream

Link copied to clipboard
open override fun write(data: ByteArray, length: Long): Long

Write data to the stream