mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 22:08:59 +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);
|
|
};
|