Core/Stream: Add MemoryMapped stream options (allowing for direct memory access)

This commit is contained in:
SirLynix
2023-03-03 13:18:51 +01:00
parent 3000345eab
commit 34abeeb7bd
9 changed files with 103 additions and 72 deletions

View File

@@ -62,6 +62,11 @@ namespace Nz
// Nothing to flush
}
void* MemoryStream::GetMemoryMappedPointer() const
{
return m_buffer->GetBuffer();
}
/*!
* \brief Reads blocks
* \return Number of blocks read