Exemplo n.º 1
0
 public void Write(byte[] buffer, ref int offset)
 {
     CMemoryManager.WriteString(m_key, buffer, ref offset);
     CMemoryManager.WriteInt(m_fileLength, buffer, ref offset);
     CMemoryManager.WriteDateTime(ref m_lastModifyTime, buffer, ref offset);
     CMemoryManager.WriteInt(m_tagInt1, buffer, ref offset);
     CMemoryManager.WriteInt(m_tagInt2, buffer, ref offset);
     CMemoryManager.WriteByte((byte)(m_tagBool ? 1 : 0), buffer, ref offset);
 }
Exemplo n.º 2
0
 public void Write(byte[] data, ref int offset)
 {
     CMemoryManager.WriteString(this.m_version, data, ref offset);
     CMemoryManager.WriteString(this.m_publish, data, ref offset);
     CMemoryManager.WriteString(this.m_ifsPath, data, ref offset);
     CMemoryManager.WriteShort((short)this.m_resourcePackerInfosInTreeStruct.Count, data, ref offset);
     for (int i = 0; i < this.m_resourcePackerInfosInTreeStruct.Count; i++)
     {
         this.m_resourcePackerInfosInTreeStruct[i].Write(data, ref offset);
     }
 }
Exemplo n.º 3
0
 public void Write(byte[] data, ref int offset)
 {
     CMemoryManager.WriteShort(0x2712, data, ref offset);
     CMemoryManager.WriteShort((short)this.m_cachedTextureInfos.Count, data, ref offset);
     for (int i = 0; i < this.m_cachedTextureInfos.Count; i++)
     {
         CMemoryManager.WriteString(this.m_cachedTextureInfos[i].m_key, data, ref offset);
         CMemoryManager.WriteShort((short)this.m_cachedTextureInfos[i].m_width, data, ref offset);
         CMemoryManager.WriteShort((short)this.m_cachedTextureInfos[i].m_height, data, ref offset);
         CMemoryManager.WriteDateTime(ref this.m_cachedTextureInfos[i].m_lastModifyTime, data, ref offset);
         CMemoryManager.WriteByte(!this.m_cachedTextureInfos[i].m_isGif ? ((byte)0) : ((byte)1), data, ref offset);
     }
 }
        public void Write(byte[] data, ref int offset)
        {
            int num = offset;

            offset += 4;
            CMemoryManager.WriteShort(10003, data, ref offset);
            CMemoryManager.WriteShort((short)this.m_cachedTextureInfos.get_Count(), data, ref offset);
            for (int i = 0; i < this.m_cachedTextureInfos.get_Count(); i++)
            {
                CMemoryManager.WriteString(this.m_cachedTextureInfos.get_Item(i).m_key, data, ref offset);
                CMemoryManager.WriteShort((short)this.m_cachedTextureInfos.get_Item(i).m_width, data, ref offset);
                CMemoryManager.WriteShort((short)this.m_cachedTextureInfos.get_Item(i).m_height, data, ref offset);
                CMemoryManager.WriteDateTime(ref this.m_cachedTextureInfos.get_Item(i).m_lastModifyTime, data, ref offset);
                CMemoryManager.WriteByte((!this.m_cachedTextureInfos.get_Item(i).m_isGif) ? 0 : 1, data, ref offset);
            }
            CMemoryManager.WriteInt(offset - num, data, ref num);
        }
Exemplo n.º 5
0
 public void Write(byte[] data, ref int offset)
 {
     if (((data != null) && (offset >= 0)) && (offset < data.Length))
     {
         int num = offset;
         offset += 4;
         CMemoryManager.WriteString(this.m_version, data, ref offset);
         CMemoryManager.WriteString(this.m_buildNumber, data, ref offset);
         CMemoryManager.WriteString(this.m_publish, data, ref offset);
         CMemoryManager.WriteString(this.m_ifsPath, data, ref offset);
         CMemoryManager.WriteShort((short)this.m_resourcePackerInfosInTreeStruct.Count, data, ref offset);
         for (int i = 0; i < this.m_resourcePackerInfosInTreeStruct.Count; i++)
         {
             this.m_resourcePackerInfosInTreeStruct[i].Write(data, ref offset);
         }
         CMemoryManager.WriteInt(offset, data, ref num);
     }
 }