コード例 #1
0
        public TblParse(string filePath)
        {
            if (string.IsNullOrWhiteSpace(filePath))
            {
                throw new Exception("file path is null");
            }

            this.reader = new TblBinaryReader(File.Open(filePath, FileMode.Open));
            GetStartPosition();
            offset = this.reader.BaseStream.Position;
        }
コード例 #2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="filePath">文件路径</param>
        public TblTransform(string filePath)
        {
            if (filePath == null)
            {
                throw new Exception("file path is null");
            }

            this.reader = new TblBinaryReader(File.Open(filePath, FileMode.Open));
            FileBytes   = new List <byte>();
            headBytes   = new List <byte>();
            GetStartPosition();
            offset = this.reader.BaseStream.Position;
        }