Beispiel #1
0
        public override byte[] GetBytes()
        {
            MemoryStream  pvmStream         = new MemoryStream();
            ArchiveBase   pvmbase           = new PvmArchive();
            ArchiveWriter puyoArchiveWriter = pvmbase.Create(pvmStream);

            foreach (PVMEntry tex in Entries)
            {
                MemoryStream ms = new MemoryStream(tex.Data);
                puyoArchiveWriter.CreateEntry(ms, tex.Name);
            }
            puyoArchiveWriter.Flush();
            return(pvmStream.ToArray());
        }