MCPcopy Index your code
hub / github.com/exceljs/exceljs / addStringBuf

Method addStringBuf

lib/utils/string-buf.js:68–79  ·  view source on GitHub ↗
(inBuf)

Source from the content-addressed store, hash-verified

66 }
67
68 addStringBuf(inBuf) {
69 if (inBuf.length) {
70 this._buffer = undefined;
71
72 if (this.length + inBuf.length > this.capacity) {
73 this._grow(this.length + inBuf.length);
74 }
75 // eslint-disable-next-line no-underscore-dangle
76 inBuf._buf.copy(this._buf, this._inPos, 0, inBuf.length);
77 this._inPos += inBuf.length;
78 }
79 }
80}
81
82module.exports = StringBuf;

Callers

nothing calls this directly

Calls 2

_growMethod · 0.95
copyMethod · 0.45

Tested by

no test coverage detected