Пример #1
0
 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);
 }
Пример #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             m_view.Dispose();
         }
         m_arc = null;
         m_view = null;
         disposed = true;
     }
 }
Пример #3
0
 public ArcStream(ArcView file, long offset, uint size)
     : this(new Frame (file, offset, size))
 {
 }
Пример #4
0
 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);
 }
Пример #5
0
 public ArcViewStream(ArcView file, long offset, uint size, string name = null)
     : this(new ArcView.Frame(file, offset, size), name)
 {
 }
Пример #6
0
 public ArcStream(ArcView file)
 {
     m_view = file.CreateFrame();
     m_start = 0;
     m_size = file.MaxOffset;
     m_position = 0;
 }
Пример #7
0
 public ArcFile(ArcView arc, ArchiveFormat impl, ICollection<Entry> dir)
 {
     m_arc = arc;
     m_interface = impl;
     m_dir = dir;
 }
Пример #8
0
 public abstract ArcFile TryOpen(ArcView view);
Пример #9
0
 public ArcFile(ArcView arc, ArchiveFormat impl, ICollection <Entry> dir)
 {
     m_arc       = arc;
     m_interface = impl;
     m_dir       = dir;
 }
Пример #10
0
 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));
 }
Пример #11
0
 public ArcStream(ArcView file, long offset, uint size)
     : this(new Frame(file, offset, size))
 {
 }