MCPcopy Create free account
hub / github.com/totaljs/framework / getIndexPage

Function getIndexPage

graphdb.js:1053–1055  ·  view source on GitHub ↗
(self, offset)

Source from the content-addressed store, hash-verified

1051}
1052
1053function getIndexPage(self, offset) {
1054 return ((offset - HEADERSIZE) / (self.header.pagesize + (self.header.pagelimit * self.header.documentsize)));
1055}
1056
1057function getDocumentIndex(self, pageindex, count) {
1058 return ((pageindex - 1) * self.header.pagelimit) + (count || 1);

Callers 1

graphdb.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected