public static MappedByteBuffer MapExistingFile(FileInfo cncFile, Action <string> logger) { if (cncFile.Exists) { if (null != logger) { logger("INFO: CnC file exists: " + cncFile); } return(IoUtil.MapExistingFile(cncFile, cncFile.ToString())); } return(null); }
public static MappedByteBuffer MapExistingFile(FileInfo cncFile, Action <string> logger, long offset, long length) { if (cncFile.Exists) { if (null != logger) { logger("INFO: CnC file exists: " + cncFile); } return(IoUtil.MapExistingFile(cncFile, offset, length)); } return(null); }