ladybird/Libraries/LibWeb/FileAPI/FileReaderSync.idl
Tim Ledbetter bbcd8bd97c LibWeb: Implement FileReaderSync interface
This interface allows the user to read File or Blob objects
synchronously from inside workers.
2025-02-28 04:49:51 +00:00

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);
};