예제 #1
0
        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);
        }
예제 #2
0
파일: CPK.cs 프로젝트: wchristian/Scarlet
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }