Click or drag to resize
Ab4d.SharpEngine logo

MemoryUtilsAlignPtrTo32 Method

Aligns the specified pointer to 32 bytes (if not already aligned then the ptr address is increased to the next aligned address). The method returns the addressOffset (if more than 0 then the ptr address is increased that offset).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public static byte* AlignPtrTo32(
	byte* ptr,
	out int addressOffset
)

Parameters

ptr  Byte*
pointer
addressOffset  Int32
out parameter that is added to the addressOffset (if more than 0 then the ptr address was increased by that offset)

Return Value

Byte*
See Also