MCPcopy Create free account
hub / github.com/Keyang/node-csvtojson / prependLeftBuf

Method prependLeftBuf

src/ProcessorLocal.ts:219–228  ·  view source on GitHub ↗
(buf: Buffer)

Source from the content-addressed store, hash-verified

217 }
218
219 private prependLeftBuf(buf: Buffer) {
220 if (buf) {
221 if (this.runtime.csvLineBuffer) {
222 this.runtime.csvLineBuffer = Buffer.concat([buf, this.runtime.csvLineBuffer]);
223 } else {
224 this.runtime.csvLineBuffer = buf;
225 }
226 }
227
228 }
229 private runPreLineHook(lines: string[]): Promise<string[]> {
230 return new Promise((resolve, reject) => {
231 processLineHook(lines, this.runtime, 0, (err) => {

Callers 6

processCSVMethod · 0.95
processDataWithHeadMethod · 0.95
processCSVBodyMethod · 0.95
browser.jsFile · 0.80
csvtojson.min.jsFile · 0.80
ProcessorLocal.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected