WriteAndPosition<T> Method
In This Topic
Writes the specified T data to a memory location.
Syntax
'Declaration
Public Shared Function WriteAndPosition(Of As {New, Struct})( _
ByVal As IntPtr, _
ByRef As _
) As IntPtr
public static IntPtr WriteAndPosition<>(
IntPtr ,
ref
)
where T: new(), struct
Parameters
- destination
- Memory location to write to.
- data
- The data to write.
Type Parameters
- T
- Type of a data to write.
Return Value
destination pointer + sizeof(T).
See Also