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