ChunkedArrayBufferStream class

Extends

Stream<ArrayBuffer>

Constructors

ChunkedArrayBufferStream(number, string)

Properties

id
isClosed
isReadEnded
read
readEnded

Methods

close()
writeStreamChunk(IStreamChunk<ArrayBuffer>)

Constructor Details

ChunkedArrayBufferStream(number, string)

new ChunkedArrayBufferStream(targetChunkSize: number, streamId?: string)

Parameters

targetChunkSize

number

streamId

string

Property Details

id

string id

Property Value

string

isClosed

boolean isClosed

Property Value

boolean

isReadEnded

boolean isReadEnded

Property Value

boolean

read

read: () => Promise<IStreamChunk<ArrayBuffer>>

Property Value

() => Promise<IStreamChunk<ArrayBuffer>>

readEnded

readEnded: () => void

Property Value

() => void

Method Details

close()

function close()

writeStreamChunk(IStreamChunk<ArrayBuffer>)

function writeStreamChunk(chunk: IStreamChunk<ArrayBuffer>)

Parameters

chunk

IStreamChunk<ArrayBuffer>