Пример #1
0
 public IFFChunk(IFFChunk BaseChunk)
 {
     m_Data = BaseChunk.m_Data;
     Size   = BaseChunk.Size;
     ID     = BaseChunk.ID;
     Type   = BaseChunk.Type;
 }
Пример #2
0
 public IFFChunk(IFFChunk BaseChunk)
 {
     m_Parent = BaseChunk.m_Parent;
     m_Device = BaseChunk.m_Parent.Device;
     m_Data   = BaseChunk.m_Data;
     Size     = BaseChunk.Size;
     ID       = BaseChunk.ID;
     Type     = BaseChunk.Type;
 }
Пример #3
0
        private void ReadHeader(FileReader Reader)
        {
            Type = (IFFChunkTypes)Enum.Parse(typeof(IFFChunkTypes),Reader.ReadString(4).Replace("#","").Replace("\0",""));
            Size = Reader.ReadUInt32();
            ID   = Reader.ReadUShort();
            Reader.ReadUShort();  //Flags
            Reader.ReadBytes(64); //Label

            m_Data = Reader.ReadBytes((int)(Size - 76));

            if (!Endian.IsBigEndian)
            {
                Array.Reverse(m_Data); //Data is Little Endian, so needs to be reversed.
            }
        }
Пример #4
0
        private void ReadHeader(FileReader Reader)
        {
            Type = (IFFChunkTypes)Enum.Parse(typeof(IFFChunkTypes), Reader.ReadString(4).Replace("#", "").Replace("\0", ""));
            Size = Reader.ReadUInt32();
            ID = Reader.ReadUShort();
            Reader.ReadUShort();  //Flags
            Reader.ReadBytes(64); //Label

            m_Data = Reader.ReadBytes((int)(Size - 76));

            if (!Endian.IsBigEndian)
                Array.Reverse(m_Data); //Data is Little Endian, so needs to be reversed.
        }
Пример #5
0
 public IFFChunk(IFFChunk BaseChunk)
 {
     m_Data = BaseChunk.m_Data;
     Size = BaseChunk.Size;
     ID = BaseChunk.ID;
     Type = BaseChunk.Type;
 }