示例#1
0
        public static ChapterStruct BytesToChapterStruct(byte[] bytes)
        {
            ChapterStruct struct2 = new ChapterStruct();
            int           offset  = 0;

            struct2.chapter_name = GetBytes(0x40, ref offset, bytes);
            struct2.offset       = GetInt32(4, ref offset, bytes);
            struct2.lenth        = GetInt32(4, ref offset, bytes);
            return(struct2);
        }
示例#2
0
        public static ChapterStruct BytesToChapterStruct(byte[] bytes)
        {
            ChapterStruct result = default(ChapterStruct);
            int           num    = 0;

            result.chapter_name = BytesToStruct.GetBytes(64, ref num, bytes);
            result.offset       = BytesToStruct.GetInt32(4, ref num, bytes);
            result.lenth        = BytesToStruct.GetInt32(4, ref num, bytes);
            return(result);
        }