Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AlignedSizeOf< T >()

static uint System.Runtime.InteropServices.SafeBuffer.AlignedSizeOf< T > ( )
inlinestaticpackageinherited
Type Constraints
T :struct 

Definition at line 255 of file SafeBuffer.cs.

255 : struct
256 {
257 uint num = SizeOf<T>();
258 if (num == 1 || num == 2)
259 {
260 return num;
261 }
262 return (uint)((num + 3) & -4);
263 }

References System.Runtime.InteropServices.SafeBuffer.SizeOf< T >().

Referenced by System.Runtime.InteropServices.SafeBuffer.Initialize< T >(), System.Runtime.InteropServices.SafeBuffer.ReadSpan< T >(), and System.Runtime.InteropServices.SafeBuffer.WriteSpan< T >().