use Stream.WriteByte() to overwrite signature.

This commit is contained in:
morkt 2015-05-13 23:49:08 +04:00
parent 53b7077786
commit 9e9e88f09d

View File

@ -43,11 +43,10 @@ namespace GameRes.Formats.ShiinaRio
input = new MemoryStream(); input = new MemoryStream();
file.CopyTo (input); file.CopyTo (input);
} }
// FIXME: doesn't work for memory streams with non-zero origin input.Position = 1;
var buf = input.GetBuffer(); input.WriteByte ((byte)'g');
buf[1] = (byte)'g'; input.WriteByte ((byte)'g');
buf[2] = (byte)'g'; input.WriteByte ((byte)'S');
buf[3] = (byte)'S';
input.Position = 0; input.Position = 0;
var ogg = new OggInput (input); var ogg = new OggInput (input);
if (file != input) if (file != input)