Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
converting single to an array of double
latika singh
Feb 16 2012 11:47 AM
1.7k
Reply
Dear All,
I have created an application to transfer data on a UDP protocol as an asynchronous client socket. I am receiving 32 bytes of data on UDP in variable db.buffer.
db is an instance of a class and buffer is byte array.
I am executing the following statement:
Dim value As Double = BitConverter.ToSingle(db.buffer, 0)
after executing the statement the length of the value is converted to only single instead I want it to store as an array so that I can read all the bytes respectively. Is there a way to overcome this situation? How can I split the bytes and store them in an array of double or integer?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Storing Values in Array
Problems Inserting Char() Type into MySql Table Structure