MCPcopy Create free account
hub / github.com/TruthHun/BookStack / doWrite

Function doWrite

static/word2md/mammoth.browser.js:25619–25626  ·  view source on GitHub ↗
(stream, state, writev, len, chunk, encoding, cb)

Source from the content-addressed store, hash-verified

25617}
25618
25619function doWrite(stream, state, writev, len, chunk, encoding, cb) {
25620 state.writelen = len;
25621 state.writecb = cb;
25622 state.writing = true;
25623 state.sync = true;
25624 if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);
25625 state.sync = false;
25626}
25627
25628function onwriteError(stream, state, sync, er, cb) {
25629 --state.pendingcb;

Callers 2

writeOrBufferFunction · 0.70
clearBufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected