Class MemoryUtils
Helper methods to perform low-level memory operations.
Inherited Members
Namespace: GtfDdsSharp
Assembly: GtfDdsSharp.dll
Syntax
public static class MemoryUtils
Methods
| Name | Description |
|---|---|
| GetAlignment(uint, uint) | Rounds up the specified size to the given alignment. |
| GetGtfAlignment(uint) | Rounds up the specified size to be aligned to a GTF texture boundary. |
| GetMipmapSize(uint, uint, uint) | Computes the number of mipmap levels based on the specified dimensions. |
| MoveMemory(void*, void*, uint, bool) | Copies bytes from the source address to the destination address. |
| MoveMemoryWithInvertEndian16(ushort*, ushort*, uint) | Copies bytes from the source address to the destination address in reversed 2-byte chunks. |
| MoveMemoryWithInvertEndian16(void*, void*, uint, bool) | Copies bytes from the source address to the destination address in reversed 2-byte chunks. |
| MoveMemoryWithInvertEndian32(uint*, uint*, uint) | Copies bytes from the source address to the destination address in reversed 4-byte chunks. |
| MoveMemoryWithInvertEndian32(void*, void*, uint, bool) | Copies bytes from the source address to the destination address in reversed 4-byte chunks. |
| ReverseEndianness(ref DdsHeader) | Reverses a primitive value by performing an endianness swap of the specified DdsHeader value. |
| ReverseEndianness(ref DdsPixelFormat) | Reverses a primitive value by performing an endianness swap of the specified DdsPixelFormat value. |
| ReverseEndianness(ref GtfHeader) | Reverses a primitive value by performing an endianness swap of the specified GtfHeader value. |
| ReverseEndianness(ref GtfTextureAttribute) | Reverses a primitive value by performing an endianness swap of the specified GtfTextureAttribute value. |
| ReverseEndianness(ref GtfTextureInfo) | Reverses a primitive value by performing an endianness swap of the specified GtfTextureInfo value. |
| ToSwizzle(uint, uint, uint, uint, uint, uint) | Computes the swizzle offset from the specified coordinates and base-2 logarithms of each dimension. |
| ToSwizzle2D(uint, uint, uint, uint) | Computes the swizzle offset from the specified coordinates and base-2 logarithms of each dimension. |
| ToSwizzle3D(uint, uint, uint, uint, uint, uint) | Computes the swizzle offset from the specified coordinates and base-2 logarithms of each dimension. |