Class DXMarshal
Assembly: JeremyAnsel.DirectX.DXCommon.dll
Syntax
public static class DXMarshal
Methods
|
Edit this page
View Source
GetNullTerminatedStringCountAnsi(nint)
Declaration
public static int GetNullTerminatedStringCountAnsi(nint str)
Parameters
| Type |
Name |
Description |
| nint |
str |
|
Returns
|
Edit this page
View Source
GetNullTerminatedStringCountUni(nint)
Declaration
public static int GetNullTerminatedStringCountUni(nint str)
Parameters
| Type |
Name |
Description |
| nint |
str |
|
Returns
|
Edit this page
View Source
ReadBool(ref nint)
Declaration
public static bool ReadBool(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadByte(ref nint)
Declaration
public static byte ReadByte(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadChar(ref nint)
Declaration
public static char ReadChar(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadDouble(ref nint)
Declaration
public static double ReadDouble(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadInt16(ref nint)
Declaration
public static short ReadInt16(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadInt32(ref nint)
Declaration
public static int ReadInt32(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadInt64(ref nint)
Declaration
public static long ReadInt64(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadIntPtr(ref nint)
Declaration
public static nint ReadIntPtr(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadSignedByte(ref nint)
Declaration
public static sbyte ReadSignedByte(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadSingle(ref nint)
Declaration
public static float ReadSingle(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadSpanByte(ref nint, Span<byte>)
Declaration
public static void ReadSpanByte(ref nint buffer, Span<byte> value)
Parameters
|
Edit this page
View Source
ReadSpanChar(ref nint, Span<char>)
Declaration
public static void ReadSpanChar(ref nint buffer, Span<char> value)
Parameters
|
Edit this page
View Source
ReadStructure<T>(nint)
Declaration
public static T ReadStructure<T>(nint buffer) where T : unmanaged
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
Type Parameters
|
Edit this page
View Source
ReadUnsignedInt16(ref nint)
Declaration
public static ushort ReadUnsignedInt16(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadUnsignedInt32(ref nint)
Declaration
public static uint ReadUnsignedInt32(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadUnsignedInt64(ref nint)
Declaration
public static ulong ReadUnsignedInt64(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
ReadUnsignedIntPtr(ref nint)
Declaration
public static nuint ReadUnsignedIntPtr(ref nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
SizeOf<T>()
Declaration
public static int SizeOf<T>() where T : unmanaged
Returns
Type Parameters
|
Edit this page
View Source
SizeOf<T>(ReadOnlySpan<T>)
Declaration
public static int SizeOf<T>(ReadOnlySpan<T> data) where T : unmanaged
Parameters
Returns
Type Parameters
|
Edit this page
View Source
SizeOf<T>(T[])
Declaration
public static int SizeOf<T>(T[] data) where T : unmanaged
Parameters
| Type |
Name |
Description |
| T[] |
data |
|
Returns
Type Parameters
|
Edit this page
View Source
Write(ref nint, bool)
Declaration
public static void Write(ref nint buffer, bool value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| bool |
value |
|
|
Edit this page
View Source
Write(ref nint, byte)
Declaration
public static void Write(ref nint buffer, byte value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| byte |
value |
|
|
Edit this page
View Source
Write(ref nint, char)
Declaration
public static void Write(ref nint buffer, char value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| char |
value |
|
|
Edit this page
View Source
Write(ref nint, double)
Declaration
public static void Write(ref nint buffer, double value)
Parameters
|
Edit this page
View Source
Write(ref nint, short)
Declaration
public static void Write(ref nint buffer, short value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| short |
value |
|
|
Edit this page
View Source
Write(ref nint, int)
Declaration
public static void Write(ref nint buffer, int value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| int |
value |
|
|
Edit this page
View Source
Write(ref nint, long)
Declaration
public static void Write(ref nint buffer, long value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| long |
value |
|
|
Edit this page
View Source
Write(ref nint, nint)
Declaration
public static void Write(ref nint buffer, nint value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| nint |
value |
|
|
Edit this page
View Source
Write(ref nint, ReadOnlySpan<byte>)
Declaration
public static void Write(ref nint buffer, ReadOnlySpan<byte> value)
Parameters
|
Edit this page
View Source
Write(ref nint, ReadOnlySpan<char>)
Declaration
public static void Write(ref nint buffer, ReadOnlySpan<char> value)
Parameters
|
Edit this page
View Source
Write(ref nint, sbyte)
Declaration
public static void Write(ref nint buffer, sbyte value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| sbyte |
value |
|
|
Edit this page
View Source
Write(ref nint, float)
Declaration
public static void Write(ref nint buffer, float value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| float |
value |
|
|
Edit this page
View Source
Write(ref nint, ushort)
Declaration
public static void Write(ref nint buffer, ushort value)
Parameters
|
Edit this page
View Source
Write(ref nint, uint)
Declaration
public static void Write(ref nint buffer, uint value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| uint |
value |
|
|
Edit this page
View Source
Write(ref nint, ulong)
Declaration
public static void Write(ref nint buffer, ulong value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| ulong |
value |
|
|
Edit this page
View Source
Write(ref nint, nuint)
Declaration
public static void Write(ref nint buffer, nuint value)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| nuint |
value |
|
|
Edit this page
View Source
WriteStructure<T>(nint, in T)
Declaration
public static void WriteStructure<T>(nint buffer, in T value) where T : unmanaged
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
| T |
value |
|
Type Parameters