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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
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