Example #1
0
 public void Add(string fileName, byte[] buffer, bool compress)
 {
     CheckDisposed();
     byte[] fileNameBuffer = Encoding.ASCII.GetBytes(fileName);
     Dat_add(_dat, fileNameBuffer, buffer, buffer.Length, (byte)(compress?1:0));
     FuryException.Throw();
 }
Example #2
0
        protected DatItem Next()
        {
            DatHeader header = new DatHeader();

            if (Dat_next(_dat, ref header) == 1)
            {
                return(new DatItem(header, this, _index));
            }
            FuryException.Throw();
            return(null);
        }
Example #3
0
        public DatItem Item(int index)
        {
            CheckDisposed();
            DatHeader header = new DatHeader();

            if (Dat_header(_dat, (UInt32)index, ref header) == 1)
            {
                return(new DatItem(header, this, (UInt32)index));
            }
            FuryException.Throw();
            return(null);
        }
Example #4
0
 public Bmp(byte[] pixelBuffer, byte[] paletteBuffer) : base(Bmp_createFromImmAndPam(pixelBuffer, pixelBuffer.Length, paletteBuffer, paletteBuffer.Length))
 {
     FuryException.Throw();
 }
Example #5
0
 public Bmp(byte[] buffer) : base(Bmp_createFromBmp(buffer, buffer.Length))
 {
     FuryException.Throw();
 }
Example #6
0
 public Dat()
 {
     _dat = Dat_createNew();
     FuryException.Throw();
 }
Example #7
0
 protected void Reset()
 {
     Dat_reset(_dat);
     FuryException.Throw();
 }
Example #8
0
 public Dat(byte[] buffer)
 {
     _dat = Dat_create(buffer, buffer.Length);
     FuryException.Throw();
 }