You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
713 B
22 lines
713 B
import { Stream } from "../../common";
|
|
/**
|
|
* @constructor
|
|
* @implements {Decoder}
|
|
* @param {{fatal: boolean}} options
|
|
*/
|
|
export declare class EUCJPDecoder {
|
|
readonly fatal: boolean;
|
|
eucjp_jis0212_flag: boolean;
|
|
eucjp_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;
|
|
}
|
|
|