mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-25 17:39:27 +00:00 
			
		
		
		
	This interface allows the user to read File or Blob objects synchronously from inside workers.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			401 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			401 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <FileAPI/Blob.idl>
 | |
| 
 | |
| // https://w3c.github.io/FileAPI/#FileReaderSync
 | |
| [Exposed=(DedicatedWorker,SharedWorker)]
 | |
| interface FileReaderSync {
 | |
|     constructor();
 | |
|     // Synchronously return strings
 | |
| 
 | |
|     ArrayBuffer readAsArrayBuffer(Blob blob);
 | |
|     DOMString readAsText(Blob blob, optional DOMString encoding);
 | |
|     DOMString readAsBinaryString(Blob blob);
 | |
|     DOMString readAsDataURL(Blob blob);
 | |
| };
 |