Click here to Skip to main content
15,889,266 members
Home / Discussions / C#
   

C#

 
GeneralRe: how should i word this... and better...how should i do it? Pin
DaveyM6919-Jan-11 2:48
professionalDaveyM6919-Jan-11 2:48 
GeneralRe: how should i word this... and better...how should i do it? Pin
#realJSOP19-Jan-11 2:52
mve#realJSOP19-Jan-11 2:52 
GeneralRe: how should i word this... and better...how should i do it? Pin
jwalker34319-Jan-11 16:37
jwalker34319-Jan-11 16:37 
QuestionHow to pin List<byte[]> to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 2:09
professionalChesnokov Yuriy18-Jan-11 2:09 
AnswerRe: How to pin List<byte[]> to unmanaged byte** Pin
Ravi Sant18-Jan-11 2:26
Ravi Sant18-Jan-11 2:26 
AnswerRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 2:35
professionalChesnokov Yuriy18-Jan-11 2:35 
AnswerRe: How to pin List<byte[]> to unmanaged byte** Pin
_Erik_18-Jan-11 2:37
_Erik_18-Jan-11 2:37 
GeneralRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 2:48
professionalChesnokov Yuriy18-Jan-11 2:48 
I forgot how to handle that situation in C#.
It needs to allocate with static alloc array of pointers then pin byte[] from List to that array.

void function(byte** data, unsigned int N, unsigned int M)
{
for (int i = 0; i < N; i++)
{
   for (int j = 0; j < M; j++)
       printf("%c ", data[i][j]);
   printf("\n"); 
}
}


The functions takes array of pointers to byte* arrays.

In C# those byte[] arrays are stored in the List<byte[]> collection.
Чесноков

GeneralRe: How to pin List to unmanaged byte** Pin
DaveyM6918-Jan-11 2:57
professionalDaveyM6918-Jan-11 2:57 
QuestionRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 3:03
professionalChesnokov Yuriy18-Jan-11 3:03 
GeneralRe: How to pin List to unmanaged byte** Pin
_Erik_18-Jan-11 3:01
_Erik_18-Jan-11 3:01 
AnswerRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 3:06
professionalChesnokov Yuriy18-Jan-11 3:06 
GeneralRe: How to pin List to unmanaged byte** Pin
_Erik_18-Jan-11 3:17
_Erik_18-Jan-11 3:17 
AnswerRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 3:20
professionalChesnokov Yuriy18-Jan-11 3:20 
GeneralRe: How to pin List to unmanaged byte** Pin
_Erik_18-Jan-11 3:47
_Erik_18-Jan-11 3:47 
GeneralRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 8:07
professionalChesnokov Yuriy18-Jan-11 8:07 
GeneralRe: How to pin List to unmanaged byte** Pin
DaveyM6918-Jan-11 16:50
professionalDaveyM6918-Jan-11 16:50 
GeneralRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 19:16
professionalChesnokov Yuriy18-Jan-11 19:16 
GeneralRe: How to pin List to unmanaged byte** Pin
DaveyM6919-Jan-11 1:01
professionalDaveyM6919-Jan-11 1:01 
QuestionRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy19-Jan-11 1:25
professionalChesnokov Yuriy19-Jan-11 1:25 
AnswerRe: How to pin List to unmanaged byte** Pin
DaveyM6919-Jan-11 2:40
professionalDaveyM6919-Jan-11 2:40 
AnswerRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy19-Jan-11 3:00
professionalChesnokov Yuriy19-Jan-11 3:00 
QuestionRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy19-Jan-11 4:13
professionalChesnokov Yuriy19-Jan-11 4:13 
AnswerRe: How to pin List to unmanaged byte** Pin
DaveyM6919-Jan-11 5:43
professionalDaveyM6919-Jan-11 5:43 
AnswerRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy19-Jan-11 9:28
professionalChesnokov Yuriy19-Jan-11 9:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.