Programmer Question
I want to send a a Uint16 over the network. I've had a look at the different .NET serializers available. According to this http://stackoverflow.com/questions/1884755/f-serialize-discriminated-union-why-so-many-bytes using a BinaryFormatter will generate overhead bytes that represent meta-data for that type. A result of this would be that UInt16, once passed through that formatter, may not be represented as 16 bits. I need a way to convert that UInt16 such that I get 16 bits from it that I can send to the program at the other end of the socket.
Find the answer here
No comments:
Post a Comment