Lines Matching defs:s_file
180 CFile s_file;
181 if (CPath::FileExists(m_sfilename) && s_file.Open(m_sfilename, CFile::read)) {
182 uint32_t version = s_file.ReadUInt32();
184 time_t savetime = s_file.ReadUInt32();
186 uint32_t numKeys = s_file.ReadUInt32();
188 CUInt128 keyID = s_file.ReadUInt128();
189 uint32_t numSource = s_file.ReadUInt32();
191 CUInt128 sourceID = s_file.ReadUInt128();
192 uint32_t numName = s_file.ReadUInt32();
196 toAdd->m_tLifeTime = s_file.ReadUInt32();
197 uint32_t tagList = s_file.ReadUInt8();
199 CTag* tag = s_file.ReadTag();
232 s_file.Close();
276 CFile s_file;
277 if (s_file.Open(m_sfilename, CFile::write)) {
278 s_file.WriteUInt32(2); // version
279 s_file.WriteUInt32(now + KADEMLIAREPUBLISHTIMES);
281 s_file.WriteUInt32((uint32_t)m_Sources_map.size());
284 s_file.WriteUInt128(currSrcHash->keyID);
288 s_file.WriteUInt32((uint32_t)KeyHashSrcMap.size());
292 s_file.WriteUInt128(currSource->sourceID);
296 s_file.WriteUInt32((uint32_t)SrcEntryList.size());
299 s_file.WriteUInt32(currName->m_tLifeTime);
300 currName->WriteTagList(&s_file);
308 s_file.Close();