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

Method toBuffer

lib/utils/string-buf.js:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 toBuffer() {
28 // return the current data as a single enclosing buffer
29 if (!this._buffer) {
30 this._buffer = Buffer.alloc(this.length);
31 this._buf.copy(this._buffer, 0, 0, this.length);
32 }
33 return this._buffer;
34 }
35
36 reset(position) {
37 position = position || 0;

Callers 3

_processMediaEntryMethod · 0.45
string-buf.spec.jsFile · 0.45
stream-buf.spec.jsFile · 0.45

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected