Memory utilites, used primarily for moving large amounts of byte data quickly.
Declaration Syntax
C# |
public static class MemUtils
Members
All Members | Methods | ||||
|
|
|
Icon | Member | Description |
---|---|---|
CalculateMipSize(Int32, Int32, Int32, Int32, SurfaceFormat) |
Calculate the size of the mip level. Use this to compute the actual size of a sub-resource
that uses a compression format.
|
|
CheckArrayBounds(Array, Int32, Int32) |
Checks an array's bounds for copy operations.
|
|
CheckBounds(Int32, Int32, Int32, Int32) |
Checks bounds for reading/writing operations.
|
|
Copy(Array, Array, Int32) |
Copies byte store from one array to another. Arrays do not have to be the same length,
and array lower bounds are checked, but there may be overflow.
|
|
Copy(Array, Int32, Array, Int32, Int32) |
Copies byte store from one array to another. Arrays do not have to be the same length,
and array lower bounds are checked, but there may be overflow.
|
|
Copy(IntPtr, IntPtr, Int32) |
Copies byte store from one IntPtr to another. This does not check array bounds,
handle with care!
|
|
Copy(IntPtr, Int32, IntPtr, Int32, Int32) |
Copies byte store from one IntPtr to another. This does not check array bounds,
handle with care!
|
|
GetEnumValues(Enum) |
Enumerates the enumeration.
|
|
memcpy(Byte*, Byte*, Int32) |
Copies bytes from one unsafe byte pointer to another, from the MSDN
C# programming guide. This does not check bounds and offsets should be
added to the pointer before passing them in.
|
|
PinObject(Object) |
Pins an object in memory, which allows us to return a
pointer to it. This means the garbage collector cannot move
the object around in memory, which may impact performance.
|
|
SizeOf(Type) |
Same as Marshal.SizeOf(Type)
|
|
SizeOf<(Of <<'(T>)>>)()()()() |
Same as Marshal.SizeOf(typeof(T))
|
|
SizeOf(Object) |
Same as Marshal.SizeOf(Object)
|
|
UnpinObject(Object) |
Unpins an object from memory.
|
Inheritance Hierarchy
Object | |
MemUtils |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)