It isn't really clear by reading native adb code, but do you know if we end up using regular posix read/write functions?
If that's the case, we might be able to reuse existing code that is used to implement OS.File in workers...
https://developer.mozilla.org/en-US/docs/JavaScript_OS.File/OS.File_for_workers