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.
		
		
		
		
		
			
		
			
				
					10 lines
				
				379 B
			
		
		
			
		
	
	
					10 lines
				
				379 B
			| 
								 
											3 years ago
										 
									 | 
							
								/// <reference types="node" />
							 | 
						||
| 
								 | 
							
								import { ParseRuntime } from "./ParseRuntime";
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * For each data chunk coming to parser:
							 | 
						||
| 
								 | 
							
								 * 1. append the data to the buffer that is left from last chunk
							 | 
						||
| 
								 | 
							
								 * 2. check if utf8 chars being split, if does, stripe the bytes and add to left buffer.
							 | 
						||
| 
								 | 
							
								 * 3. stripBom
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								export declare function prepareData(chunk: Buffer, runtime: ParseRuntime): string;
							 |