p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VS.NET 2002/2003 (http://p2p.wrox.com/forumdisplay.php?f=103)
-   -   alternative to MemCpy (http://p2p.wrox.com/showthread.php?t=18091)

sanjaykabra82 September 8th, 2004 08:04 AM

alternative to MemCpy
Hi all,

What function should I use in C# instead of Memcpy?

I want to convert the byte array to a float value.
Can ne body tell me how to do that.
It would be better if I get the code
Plz reply urgently
Thnx in advance


Kai bhool-chuk thai to maaf karjo nahi to thay e kari lejo!!

sanjaykabra82 September 17th, 2004 12:10 AM

Hi All,

Atlast after searching a lot, I got the solution to the problem of converting byte array to a float value.
I would like to share with you all.

It can be done with either using Marshal.Copy method of System.Runtime.Interopservices namespace or using a Union.

"Kai bhool chuk thai hoy to maaf kari deje nahi to thay e kari leje"

All times are GMT -4. The time now is 07:00 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.