public override Stream GetStream(Stream containerStream) { containerStream.Seek(parentContainer.DataOffset + DataOffset, SeekOrigin.Begin); MemoryStream stream = new MemoryStream(); FileFormat.CopyStream(containerStream, stream, (int)DataSize); stream.Seek(0, SeekOrigin.Begin); return(stream); }
public override Stream GetStream(Stream containerStream) { containerStream.Seek((long)FileOffset, SeekOrigin.Begin); MemoryStream stream = new MemoryStream(); FileFormat.CopyStream(containerStream, stream, Int32.Parse(FileSize.ToString())); stream.Seek(0, SeekOrigin.Begin); return(stream); }
public override Stream GetStream(Stream containerStream) { containerStream.Seek(Offset + 0x10, SeekOrigin.Begin); MemoryStream stream = new MemoryStream(); FileFormat.CopyStream(containerStream, stream, (int)FileSize); stream.Seek(0, SeekOrigin.Begin); return(stream); }
public override Stream GetStream(Stream containerStream) { containerStream.Seek(SectorNumber * 0x800, SeekOrigin.Begin); MemoryStream stream = new MemoryStream(); FileFormat.CopyStream(containerStream, stream, (int)DataSize); stream.Seek(0, SeekOrigin.Begin); return(stream); }