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.
		
		
		
		
			
				
					21 lines
				
				598 B
			
		
		
			
		
	
	
					21 lines
				
				598 B
			| 
											11 months ago
										 | import { Stream } from "../../common/Stream"; | ||
|  | /** | ||
|  |  * @constructor | ||
|  |  * @implements {Encoder} | ||
|  |  * @param {{fatal: boolean}} options | ||
|  |  * @param {boolean=} gbk_flag | ||
|  |  */ | ||
|  | export declare class GB18030Encoder { | ||
|  |     private gbk_flag; | ||
|  |     readonly fatal: boolean; | ||
|  |     constructor(options: { | ||
|  |         fatal: boolean; | ||
|  |     }, gbk_flag?: boolean); | ||
|  |     /** | ||
|  |      * @param {Stream} stream Input stream. | ||
|  |      * @param {number} code_point Next code point read from the stream. | ||
|  |      * @return {(number|!Array.<number>)} Byte(s) to emit. | ||
|  |      */ | ||
|  |     handler(stream: Stream, code_point: number): (number | Array<number>); | ||
|  | } |