Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Converting Variables to byte arrays


Converting Variables to byte arrays

Author
Message
Perrie
Perrie
Forum God
Forum God (3.9K reputation)Forum God (3.9K reputation)Forum God (3.9K reputation)Forum God (3.9K reputation)Forum God (3.9K reputation)Forum God (3.9K reputation)Forum God (3.9K reputation)Forum God (3.9K reputation)Forum God (3.9K reputation)

Group: Forum Members
Posts: 13, Visits: 308
Ive just discovered winsock doesnt like User Defined types so I figure it will be easier to convert the entire block of data into a byte array, send that and then convert back into its components in the type at the other end.

Bytes and strings are easy to do but I cant seem to find any reference as to how integers, long integers, singles and doubles are assembled except for how many bytes long they are.

I know that 1 bit is used to determine if the value is positive or negative but is it the most or least significant bit and in what order are the bytes stored to create the value.

GO



Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search