public static ChapterCompress BytesToChaptercompress(byte[] bytes) { ChapterCompress compress = new ChapterCompress(); int offset = 0; compress.offset = GetInt32(4, ref offset, bytes); compress.length = GetInt32(4, ref offset, bytes); return(compress); }
public static ChapterCompress BytesToChaptercompress(byte[] bytes) { ChapterCompress result = default(ChapterCompress); int num = 0; result.offset = BytesToStruct.GetInt32(4, ref num, bytes); result.length = BytesToStruct.GetInt32(4, ref num, bytes); return(result); }