chardet/src/encoding/index.ts

17 lines
324 B
TypeScript
Raw Normal View History

import { Match } from '../match';
export interface Recogniser {
match(input: Context): Match | null;
name(input?: Context): string;
language?(): string;
}
export interface Context {
fByteStats: number[];
fC1Bytes: boolean;
fRawInput: Buffer;
fRawLength: number;
fInputBytes: Buffer;
fInputLen: number;
}