Lines Matching refs:pos

118     uint64_t pos = 0;
120 if (!ReadFileHeader(in, indexHeader, pos, static_cast<uint64_t>(length))) {
126 if (!ReadLimitKeys(in, limitKeys, indexHeader.limitKeyConfigSize, pos, static_cast<uint64_t>(length))) {
132 if (!ReadIdTables(in, datas, indexHeader.limitKeyConfigSize, pos, static_cast<uint64_t>(length))) {
139 if (!ReadDataRecordPrepare(in, record, pos, static_cast<uint64_t>(length)) ||
199 uint32_t pos = 0;
204 pos += sizeof(IndexHeader);
208 if (!Prepare(configs, limitKeyConfigs, idSets, pos)) {
219 if (!SaveRecordItem(configs, outStreamData, idSets, pos)) {
224 indexHeader.fileSize = pos;
245 map<string, IdSet> &idSets, uint32_t &pos) const
251 pos += sizeof(limitKeyConfig.keyTag) + sizeof(limitKeyConfig.offset) + sizeof(limitKeyConfig.keyCount);
255 pos += sizeof(KeyParam);
266 limitKeyConfig->second.offset = pos;
270 pos += sizeof(idSet.idTag) + sizeof(idSet.idCount);
273 pos += sizeof(uint32_t) + sizeof(uint32_t);
281 ostringstream &out, map<string, IdSet> &idSets, uint32_t &pos) const
295 idSet->second.data[tableData.id] = pos;
308 pos += recordItem.size + sizeof(uint32_t);
350 bool ResourceTable::ReadFileHeader(ifstream &in, IndexHeader &indexHeader, uint64_t &pos, uint64_t length) const
352 pos += sizeof(indexHeader);
353 if (pos > length) {
364 uint32_t count, uint64_t &pos, uint64_t length) const
367 pos = pos + TAG_LEN + INT_TO_BYTES + INT_TO_BYTES;
368 if (pos > length) {
384 pos = pos + INT_TO_BYTES + INT_TO_BYTES;
385 if (pos > length) {
400 uint32_t count, uint64_t &pos, uint64_t length) const
403 pos = pos + TAG_LEN + INT_TO_BYTES;
404 if (pos > length) {
419 pos = pos + INT_TO_BYTES + INT_TO_BYTES;
420 if (pos > length) {
433 bool ResourceTable::ReadDataRecordPrepare(ifstream &in, RecordItem &record, uint64_t &pos, uint64_t length) const
435 pos = pos + INT_TO_BYTES;
436 if (pos > length) {
441 pos = pos + record.size;
442 if (pos > length) {