3
Answers

Convert class and byte arrays

richang76

richang76

20y
3.2k
1
I want to convert to byte from other variable types without losing information. For example, I want to convert Int32 to 4 bytes or Float into 4 bytes, and put them into a byte array. It looks like the Convert.ToByte(int32) will only convert to one byte, therefore I lose 3 bytes worth of information..... I am not sure, can any one offer advice?
Answers (3)