(bytes: Uint8Array)
| 31 | import type { SyncRPC } from "./interface.js"; |
| 32 | |
| 33 | function hex(bytes: Uint8Array): string { |
| 34 | let s = ""; |
| 35 | for (let i = 0; i < bytes.byteLength; i++) s += bytes[i].toString(16).padStart(2, "0"); |
| 36 | return s; |
| 37 | } |
| 38 | |
| 39 | // Best-effort dispose of a capnweb result envelope. Real envelopes |
| 40 | // expose [Symbol.dispose]; the test fakes return plain objects, so |
no test coverage detected