public Frame(ArcView arc, long offset, uint size) { m_arc = arc; m_offset = Math.Min (offset, m_arc.MaxOffset); m_size = (uint)Math.Min (size, m_arc.MaxOffset-m_offset); m_view = m_arc.CreateViewAccessor (m_offset, m_size); }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { m_view.Dispose(); } m_arc = null; m_view = null; disposed = true; } }
public ArcStream(ArcView file, long offset, uint size) : this(new Frame (file, offset, size)) { }
public Frame(Frame other) { m_arc = other.m_arc; m_offset = 0; m_size = (uint)Math.Min (ArcView.PageSize, m_arc.MaxOffset); m_view = m_arc.CreateViewAccessor (m_offset, m_size); }
public ArcViewStream(ArcView file, long offset, uint size, string name = null) : this(new ArcView.Frame(file, offset, size), name) { }
public ArcStream(ArcView file) { m_view = file.CreateFrame(); m_start = 0; m_size = file.MaxOffset; m_position = 0; }
public ArcFile(ArcView arc, ArchiveFormat impl, ICollection<Entry> dir) { m_arc = arc; m_interface = impl; m_dir = dir; }
public abstract ArcFile TryOpen(ArcView view);
public ArcFile(ArcView arc, ArchiveFormat impl, ICollection <Entry> dir) { m_arc = arc; m_interface = impl; m_dir = dir; }
public static BitmapPalette ReadPalette(ArcView file, long offset, int colors = 0x100, PaletteFormat format = PaletteFormat.BgrX) { using (var input = file.CreateStream(offset, (uint)(4 * colors))) // largest possible size for palette return(ReadPalette(input, colors, format)); }
public ArcStream(ArcView file, long offset, uint size) : this(new Frame(file, offset, size)) { }