mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:22:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			631 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			631 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| // https://encoding.spec.whatwg.org/#textencodercommon
 | |
| interface mixin TextEncoderCommon {
 | |
|     readonly attribute DOMString encoding;
 | |
| };
 | |
| 
 | |
| // https://encoding.spec.whatwg.org/#dictdef-textencoderencodeintoresult
 | |
| dictionary TextEncoderEncodeIntoResult {
 | |
|     unsigned long long read;
 | |
|     unsigned long long written;
 | |
| };
 | |
| 
 | |
| // https://encoding.spec.whatwg.org/#textencoder
 | |
| [Exposed=*]
 | |
| interface TextEncoder {
 | |
|     constructor();
 | |
| 
 | |
|     [NewObject] Uint8Array encode(optional USVString input = "");
 | |
|     TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
 | |
| };
 | |
| TextEncoder includes TextEncoderCommon;
 | 
