int /*perr*/ FileFindFileId(long fileId, out File file) { int perr = Pfm.errorNotFound; file = (File)(fileIds.Get(fileId)); if (file != null) { perr = 0; } return(perr); }
void FileOpened(File file, ref Pfm.OpenAttribs openAttribs) { Debug.Assert(file.openId != 0); OpenRef openRef = (OpenRef)(openRefs.Get(file.openId)); if (openRef == null) { openRef = new OpenRef(file); openRefs.Set(file.openId, openRef); } openRef.openSequence = ++lastOpenSequence; openAttribs.openId = file.openId; openAttribs.openSequence = openRef.openSequence; openAttribs.accessLevel = Pfm.accessLevelWriteData; openAttribs.attribs.fileType = file.fileType; openAttribs.attribs.fileFlags = file.fileFlags; openAttribs.attribs.fileId = file.fileId; openAttribs.attribs.createTime = file.createTime; openAttribs.attribs.accessTime = file.accessTime; openAttribs.attribs.writeTime = file.writeTime; openAttribs.attribs.changeTime = file.changeTime; openAttribs.attribs.fileSize = file.fileSize; }