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

Function offsetPage

graphdb.js:1043–1045  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

1041}
1042
1043function offsetPage(self, index) {
1044 return HEADERSIZE + ((index - 1) * (self.header.pagesize + (self.header.pagelimit * self.header.documentsize)));
1045}
1046
1047function offsetDocument(self, index) {
1048 var page = Math.ceil(index / self.header.pagelimit);

Callers 5

addPageFunction · 0.85
addNodeFunction · 0.85
findDocumentFreeFunction · 0.85
updPageMetaFunction · 0.85
graphdb.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected