(buf: Uint8Array)
| 100 | * The reverse is `Uint8Array.from(latin1FromBytes(b), (c) => c.charCodeAt(0))`. |
| 101 | */ |
| 102 | export function bytesFromUint8Array(buf: Uint8Array): ByteString { |
| 103 | let out = ""; |
| 104 | for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]); |
| 105 | return out as unknown as ByteString; |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Read a file's raw bytes from any `IFileSystem`. Prefers the optional |
no outgoing calls
no test coverage detected
searching dependent graphs…