EUCJPDecoder.d.ts 713 B

1234567891011121314151617181920212223
  1. import { Stream } from "../../common";
  2. /**
  3. * @constructor
  4. * @implements {Decoder}
  5. * @param {{fatal: boolean}} options
  6. */
  7. export declare class EUCJPDecoder {
  8. readonly fatal: boolean;
  9. eucjp_jis0212_flag: boolean;
  10. eucjp_lead: number;
  11. constructor(options: {
  12. fatal: boolean;
  13. });
  14. /**
  15. * @param {Stream} stream The stream of bytes being decoded.
  16. * @param {number} bite The next byte read from the stream.
  17. * @return {?(number|!Array.<number>)} The next code point(s)
  18. * decoded, or null if not enough data exists in the input
  19. * stream to decode a complete code point.
  20. */
  21. handler(stream: Stream, bite: number): (number | Array<number>) | null;
  22. }