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.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							997 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							997 B
						
					
					
				import { IFileInfo, IReadChunkOptions } from './types.js';
 | 
						|
import { AbstractTokenizer } from './AbstractTokenizer.js';
 | 
						|
export declare class BufferTokenizer extends AbstractTokenizer {
 | 
						|
    private uint8Array;
 | 
						|
    /**
 | 
						|
     * Construct BufferTokenizer
 | 
						|
     * @param uint8Array - Uint8Array to tokenize
 | 
						|
     * @param fileInfo - Pass additional file information to the tokenizer
 | 
						|
     */
 | 
						|
    constructor(uint8Array: Uint8Array, fileInfo?: IFileInfo);
 | 
						|
    /**
 | 
						|
     * Read buffer from tokenizer
 | 
						|
     * @param uint8Array - Uint8Array to tokenize
 | 
						|
     * @param options - Read behaviour options
 | 
						|
     * @returns {Promise<number>}
 | 
						|
     */
 | 
						|
    readBuffer(uint8Array: Uint8Array, options?: IReadChunkOptions): Promise<number>;
 | 
						|
    /**
 | 
						|
     * Peek (read ahead) buffer from tokenizer
 | 
						|
     * @param uint8Array
 | 
						|
     * @param options - Read behaviour options
 | 
						|
     * @returns {Promise<number>}
 | 
						|
     */
 | 
						|
    peekBuffer(uint8Array: Uint8Array, options?: IReadChunkOptions): Promise<number>;
 | 
						|
    close(): Promise<void>;
 | 
						|
}
 |