Example #1
0
        protected override void ReadChunk(IntPtr ptr, int chunkSize, string chunkType)
        {
            switch (chunkType)
            {
            case "insh":
                Header = Marshal.PtrToStructure <CK_INSH>(ptr);
                break;

            default:
                throw new Exception(string.Format("Unknown ChunkType [{0}]", chunkType));
            }
        }
Example #2
0
        protected override void LoadChunk(IntPtr ptr, string type, uint size)
        {
            switch (type)
            {
            case "insh":
                Header = Marshal.PtrToStructure <CK_INSH>(ptr);
                break;

            default:
                throw new Exception("[INS_]Unknown ChunkType");
            }
        }