Пример #1
0
        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);
        }
Пример #2
0
        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);
        }