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(); }
protected DatItem Next() { DatHeader header = new DatHeader(); if (Dat_next(_dat, ref header) == 1) { return(new DatItem(header, this, _index)); } FuryException.Throw(); return(null); }
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); }
public Bmp(byte[] pixelBuffer, byte[] paletteBuffer) : base(Bmp_createFromImmAndPam(pixelBuffer, pixelBuffer.Length, paletteBuffer, paletteBuffer.Length)) { FuryException.Throw(); }
public Bmp(byte[] buffer) : base(Bmp_createFromBmp(buffer, buffer.Length)) { FuryException.Throw(); }
public Dat() { _dat = Dat_createNew(); FuryException.Throw(); }
protected void Reset() { Dat_reset(_dat); FuryException.Throw(); }
public Dat(byte[] buffer) { _dat = Dat_create(buffer, buffer.Length); FuryException.Throw(); }