MCPcopy Index your code
hub / github.com/totaljs/framework / updDocumentParent

Function updDocumentParent

graphdb.js:948–953  ·  view source on GitHub ↗
(self, index, parentindex, callback)

Source from the content-addressed store, hash-verified

946}
947
948function updDocumentParent(self, index, parentindex, callback) {
949 var offset = offsetDocument(self, index);
950 var buf = U.createBufferSize(4);
951 buf.writeUInt32LE(parentindex);
952 Fs.write(self.fd, buf, 0, buf.length, offset + 11, callback);
953}
954
955function updPageMeta(self, index, fn) {
956 var offset = offsetPage(self, index);

Callers 1

pushRelationDocumentFunction · 0.85

Calls 1

offsetDocumentFunction · 0.85

Tested by

no test coverage detected