Table of Contents

Method GetSizeOfReadableMemory

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll

GetSizeOfReadableMemory(nint, nint)

Gets an approximate amount of memory after start which is readable.
nint GetSizeOfReadableMemory(nint start, nint guess)

Parameters

start nint
The start address to check.
guess nint
The amount which is expected. This method may not return values larger than to the page following this guess.

Returns

nint
A number of bytes after start which it is safe to read.