Skip to content

Is there a way to map an out param1** that is an array of structs of length param2? #201

Discussion options

You must be logged in to vote

Whoops, I meant MemoryHelpers, actually.

/// <summary>
/// Reads the specified array T[] data from a memory location.
/// </summary>
/// <typeparam name="T">Type of a data to read.</typeparam>
/// <param name="source">Memory location to read from.</param>
/// <param name="data">The data write to.</param>
/// <param name="offset">The offset in the array to write to.</param>
/// <param name="count">The number of T element to read from the memory location.</param>
/// <returns>source pointer + sizeof(T) * count.</returns>
public static IntPtr Read<T>(IntPtr source

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kmgallahan
Comment options

Answer selected by kmgallahan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #199 on June 18, 2021 05:39.