Unsafe.ReadUnaligned Method

Definition

Overloads

ReadUnaligned<T>(Void*)

Reads a value of type T from the given location without assuming architecture dependent alignment of the addresses.

ReadUnaligned<T>(Byte)

Reads a value of type T from the given location without assuming architecture dependent alignment of the addresses.

ReadUnaligned<T>(Void*)

Reads a value of type T from the given location without assuming architecture dependent alignment of the addresses.

public:
generic <typename T>
 static T ReadUnaligned(void* source);
public static T ReadUnaligned<T> (void* source);
public static T? ReadUnaligned<T> (void* source);
static member ReadUnaligned : nativeptr<unit> -> 'T

Type Parameters

T

The type to read.

Parameters

source
Void*

The location to read from.

Returns

T

An object of type T read from the given location.

ReadUnaligned<T>(Byte)

Reads a value of type T from the given location without assuming architecture dependent alignment of the addresses.

public:
generic <typename T>
 static T ReadUnaligned(System::Byte % source);
public static T ReadUnaligned<T> (ref byte source);
static member ReadUnaligned : byte -> 'T
Public Shared Function ReadUnaligned(Of T) (ByRef source As Byte) As T

Type Parameters

T

The type to read.

Parameters

source
Byte

The location to read from.

Returns

T

An object of type T read from the given location.

Applies to