NstStream: Add Peek64

This commit is contained in:
Rupert Carmichael 2024-06-22 02:39:28 -04:00
parent b99ede358b
commit 9fb188e403
2 changed files with 8 additions and 0 deletions

View File

@ -273,6 +273,13 @@ namespace Nes
return data;
}
qaword In::Peek64()
{
const qaword data = Read64();
Seek( -8 );
return data;
}
void In::Peek(byte* data,dword length)
{
Read( data, length );

View File

@ -73,6 +73,7 @@ namespace Nes
uint Peek8();
uint Peek16();
dword Peek32();
qaword Peek64();
void Seek(idword);
ulong Length();
bool Eof();