MCPcopy Create free account
hub / github.com/denoland/std / writeAllSync

Function writeAllSync

io/write_all.ts:62–67  ·  view source on GitHub ↗
(writer: WriterSync, data: Uint8Array)

Source from the content-addressed store, hash-verified

60 * @param data The data to write
61 */
62export function writeAllSync(writer: WriterSync, data: Uint8Array) {
63 let nwritten = 0;
64 while (nwritten < data.length) {
65 nwritten += writer.writeSync(data.subarray(nwritten));
66 }
67}

Callers 2

write_all_test.tsFile · 0.90
buffer_test.tsFile · 0.90

Calls 1

writeSyncMethod · 0.65

Tested by

no test coverage detected