Click or drag to resize
Ab4d.SharpEngine logo

MemoryUtilsAlignValueTo32 Method

Aligns the specified value to 32 bytes (if not already aligned then the value is increased to the next aligned value). The method returns the valueOffset (if more than 0 then the value was increased by that offset).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public static int AlignValueTo32(
	int unalignedValue,
	out int? valueOffset
)

Parameters

unalignedValue  Int32
unaligned value
valueOffset  Int32
out parameter that is added to the unalignedValue (if more than 0 then the ptr address is increased that offset)

Return Value

Int32

[Missing <returns> documentation for "M:Ab4d.SharpEngine.Utilities.MemoryUtils.AlignValueTo32(System.Int32,System.Int32@)"]

Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MemoryUtils.AlignValueTo32(System.Int32,System.Int32@)"]

See Also