MCPcopy Create free account
hub / github.com/foliojs/pdfkit / ref

Method ref

lib/document.js:250–255  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

248 }
249
250 ref(data) {
251 const ref = new PDFReference(this, this._offsets.length + 1, data);
252 this._offsets.push(null); // placeholder for this object's offset once it is finalized
253 this._waiting++;
254 return ref;
255 }
256
257 _read() {}
258 // do nothing, but this method is required by node

Callers 2

constructorMethod · 0.95
endMethod · 0.95

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected