CharsetDecodeStream
Defined in: packages/app-system/src/text/charset-decode-stream.ts:12
Decodes byte chunks into strings using the given charset.
Uses the platform TextDecoder where the charset is supported and iconv-lite for everything else. Split multi-byte sequences are carried across chunk boundaries.
Extends
Section titled “Extends”TransformStream<Uint8Array,string>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CharsetDecodeStream(
charset?):CharsetDecodeStream
Defined in: packages/app-system/src/text/charset-decode-stream.ts:15
Parameters
Section titled “Parameters”charset?
Section titled “charset?”string = "utf-8"
Returns
Section titled “Returns”CharsetDecodeStream
Overrides
Section titled “Overrides”TransformStream<Uint8Array, string>.constructor
Properties
Section titled “Properties”readable
Section titled “readable”
readonlyreadable:ReadableStream<string>
Defined in: node_modules/.store/@types-node-npm-26.6.6-a217a0974b/package/stream/web.d.ts:245
Inherited from
Section titled “Inherited from”TransformStream.readable
writable
Section titled “writable”
readonlywritable:WritableStream<Uint8Array<ArrayBufferLike>>
Defined in: node_modules/.store/@types-node-npm-26.6.6-a217a0974b/package/stream/web.d.ts:246
Inherited from
Section titled “Inherited from”TransformStream.writable
Accessors
Section titled “Accessors”charset
Section titled “charset”Get Signature
Section titled “Get Signature”get charset():
string
Defined in: packages/app-system/src/text/charset-decode-stream.ts:53
Returns
Section titled “Returns”string