Search results

CompressedStreamWriter

represent compression stream writer

let compressedWriter = new CompressedStreamWriter();
let text: string = 'Hello world!!!';
compressedWriter.write(text, 0, text.length);
compressedWriter.close();

Properties

compressedData Uint8Array[]

get compressed data

Methods

close

close the stream and write all pending buffer in to stream

Returns void

destroy

release allocated un-managed resource

Returns void

pendingBufferWriteBits

write bits in to internal buffer

Parameter Type Description
b number source of bits
count number count of bits to write

Returns void

pendingBufferWriteShortBytes

Write Most Significant Bytes in to stream

Parameter Type Description
s number check sum value

Returns void

write

Compresses data and writes it to the stream.

Parameter Type Description
data Uint8Array | string data to compress
offset number offset in data
length number length of the data

Returns void

writeZLibHeader

write ZLib header to the compressed data

Returns void