MCPcopy
hub / github.com/apache/pouchdb / prepareAttachmentForStorage

Function prepareAttachmentForStorage

lib/index.es.js:4840–4842  ·  view source on GitHub ↗
(attData, cb)

Source from the content-addressed store, hash-verified

4838
4839// in Node, we store the buffer directly
4840function prepareAttachmentForStorage(attData, cb) {
4841 cb(attData);
4842}
4843
4844function createEmptyBlobOrBuffer(type) {
4845 return typedBuffer('', 'binary', type);

Callers 1

writeDocFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…