public void WriteData(void* DataPointer, int DataLength)
{
Console.Out.WriteLineColored(ConsoleColor.Cyan, "{0}: {1}", new IntPtr(DataPointer), DataLength);
try
{
var Data = PointerUtils.PointerToByteArray((byte*)DataPointer, DataLength);
if (DumpStreams) FileUtils.CreateAndAppendStream(@"c:\isos\psp\out\mpeg.stream", new MemoryStream(Data));
MpegStream.WriteBytes(Data);
}
catch (Exception Exception)
{
Console.Error.WriteLineColored(ConsoleColor.Red, "{0}", Exception);
}
}