Allocate an aligned memory buffer and clear it with a specified value (0 by default).
'Declaration
Public Shared Function AllocateClearedMemory( _
ByVal As System.Integer, _
Optional ByVal As System.Byte, _
Optional ByVal As System.Integer _
) As System.IntPtr
public static System.IntPtr AllocateClearedMemory(
System.int ,
System.byte ,
System.int
)
Parameters
- sizeInBytes
- Size of the buffer to allocate.
- clearValue
- Default value used to clear the buffer.
- align
- Alignment, 16 bytes by default.
Return Value
A pointer to a buffer aligned.