Click here to Skip to main content
15,919,774 members
Home / Discussions / C#
   

C#

 
QuestionHelp on LINQ Pin
belzer11-Mar-08 7:50
belzer11-Mar-08 7:50 
General[Cross Post] Re: Help on LINQ Pin
Scott Dorman11-Mar-08 8:03
professionalScott Dorman11-Mar-08 8:03 
GeneralRe: [Cross Post] Re: Help on LINQ Pin
belzer11-Mar-08 8:08
belzer11-Mar-08 8:08 
GeneralRe: [Cross Post] Re: Help on LINQ Pin
Scott Dorman11-Mar-08 8:24
professionalScott Dorman11-Mar-08 8:24 
GeneralRe: Help on LINQ Pin
Scott Dorman11-Mar-08 8:50
professionalScott Dorman11-Mar-08 8:50 
GeneralRe: Help on LINQ Pin
belzer11-Mar-08 9:17
belzer11-Mar-08 9:17 
GeneralRe: Help on LINQ Pin
Scott Dorman11-Mar-08 9:40
professionalScott Dorman11-Mar-08 9:40 
Questionconvert byte[] to short[] Pin
eyalbi00711-Mar-08 7:44
eyalbi00711-Mar-08 7:44 
Hi all,

I need to perfome simple-looking task in C#: Converting byte array to short array - meaning that if my byte array has 100 cells, my short array will have 50 cells.

If it was C/C++ it was simple, using pointers. However in C# I just can't do it - I've already tried using 'unsafe' block and memory pinning using GCHandle, with no success.

Another thing that bothers me in the solutions I found is that the conversion is done using memory copying, which is not necessary, since all the information is already there!

I'll be grateful for any solution!

Thanks,

Eyal.
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 7:54
m@u11-Mar-08 7:54 
GeneralRe: convert byte[] to short[] Pin
eyalbi00711-Mar-08 8:01
eyalbi00711-Mar-08 8:01 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 8:08
m@u11-Mar-08 8:08 
GeneralRe: convert byte[] to short[] Pin
eyalbi00711-Mar-08 21:48
eyalbi00711-Mar-08 21:48 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 22:52
m@u11-Mar-08 22:52 
GeneralC# ncurses Pin
marwooj11-Mar-08 7:36
marwooj11-Mar-08 7:36 
Questionbutton click event for more than 1 button Pin
steve_rm11-Mar-08 7:32
steve_rm11-Mar-08 7:32 
GeneralRe: button click event for more than 1 button Pin
m@u11-Mar-08 7:38
m@u11-Mar-08 7:38 
Generalwebbrowser and layout changing of current page Pin
eswes11-Mar-08 5:29
eswes11-Mar-08 5:29 
GeneralRe: webbrowser and layout changing of current page Pin
led mike11-Mar-08 5:49
led mike11-Mar-08 5:49 
GeneralRe: webbrowser and layout changing of current page Pin
eswes11-Mar-08 7:54
eswes11-Mar-08 7:54 
GeneralRe: webbrowser and layout changing of current page Pin
led mike11-Mar-08 8:02
led mike11-Mar-08 8:02 
GeneralRe: webbrowser and layout changing of current page Pin
eswes11-Mar-08 11:23
eswes11-Mar-08 11:23 
GeneralRe: webbrowser and layout changing of current page Pin
Mike Dimmick11-Mar-08 6:34
Mike Dimmick11-Mar-08 6:34 
QuestionReflection Question Pin
Paw Jershauge11-Mar-08 3:58
Paw Jershauge11-Mar-08 3:58 
AnswerRe: Reflection Question Pin
Martin#11-Mar-08 4:46
Martin#11-Mar-08 4:46 
GeneralRe: Reflection Question Pin
led mike11-Mar-08 4:49
led mike11-Mar-08 4:49 

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.