MCPcopy Create free account
hub / github.com/diffusionstudio/vits-web / write

Function write

src/piper.js:1453–1468  ·  view source on GitHub ↗
(stream, buffer, offset, length, pos)

Source from the content-addressed store, hash-verified

1451 return bytesRead;
1452 },
1453 write(stream, buffer, offset, length, pos) {
1454 if (!stream.tty || !stream.tty.ops.put_char) {
1455 throw new FS.ErrnoError(60);
1456 }
1457 try {
1458 for (var i = 0; i < length; i++) {
1459 stream.tty.ops.put_char(stream.tty, buffer[offset + i]);
1460 }
1461 } catch (e) {
1462 throw new FS.ErrnoError(29);
1463 }
1464 if (length) {
1465 stream.node.timestamp = Date.now();
1466 }
1467 return i;
1468 },
1469 },
1470 default_tty_ops: {
1471 get_char(tty) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected