mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 13:54:05 -06:00
22 lines
689 B
TypeScript
22 lines
689 B
TypeScript
import { Stream } from "../../common/Stream";
|
|
/**
|
|
* @constructor
|
|
* @implements {Decoder}
|
|
* @param {{fatal: boolean}} options
|
|
*/
|
|
export declare class Big5Decoder {
|
|
readonly fatal: boolean;
|
|
Big5_lead: number;
|
|
constructor(options: {
|
|
fatal: boolean;
|
|
});
|
|
/**
|
|
* @param {Stream} stream The stream of bytes being decoded.
|
|
* @param {number} bite The next byte read from the stream.
|
|
* @return {?(number|!Array.<number>)} The next code point(s)
|
|
* decoded, or null if not enough data exists in the input
|
|
* stream to decode a complete code point.
|
|
*/
|
|
handler(stream: Stream, bite: number): (number | Array<number>) | null;
|
|
}
|