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

Function decodeChunk

static/word2md/mammoth.browser.js:25580–25585  ·  view source on GitHub ↗
(state, chunk, encoding)

Source from the content-addressed store, hash-verified

25578};
25579
25580function decodeChunk(state, chunk, encoding) {
25581 if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
25582 chunk = bufferShim.from(chunk, encoding);
25583 }
25584 return chunk;
25585}
25586
25587// if we're already writing something, then just put this
25588// in the queue, and wait our turn. Otherwise, call _write

Callers 1

writeOrBufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected