Verifies the memory layout of types and detects any potential issues. More...
Classes | |
class | DefaultPlatform |
The default platform implementation. More... | |
interface | IPlatform |
Represents a platform that can resolve the memory layout of types and detect any potential issues. More... | |
Public Member Functions | |
MemoryLayoutVerifier (IPlatform platform) | |
Creates a new instance of the MemoryLayoutVerifier class. More... | |
Static Public Member Functions | |
static int | GetFieldOffset (FieldInfo field) |
Returns the offset of a field in memory. More... | |
static ? int | GetFieldOverlap (FieldInfo field) |
Gets the overlap offset of a field. More... | |
static bool | IsFixedBuffer (FieldInfo field) |
Checks if a field is a fixed buffer. More... | |
Static Public Attributes | |
static IPlatform | Platform |
The current platform used to resolve memory layout. More... | |
Verifies the memory layout of types and detects any potential issues.
|
inline |
Creates a new instance of the MemoryLayoutVerifier class.
|
inlinestatic |
Checks if a field is a fixed buffer.
field | The field to inspect. |
true
if the field is a fixed buffer; false
otherwise
|
inlinestatic |
Returns the offset of a field in memory.
field | The field for which to retrieve the offset. |
Exception | Thrown if the field does not have the [FieldOffset] attribute. |
|
inlinestatic |
Gets the overlap offset of a field.
field | The field for which to get the overlap offset. |
null
if no overlap is specified.
|
static |
The current platform used to resolve memory layout.