コード例 #1
0
ファイル: DATAkiba.cs プロジェクト: wchristian/Scarlet
        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);
        }