hi all,
i want to convert array of short to array of bytes in order to send it in Datagram Packet and then convert it from bytes to short
lena1990 -3 Junior Poster in Training
Recommended Answers
Jump to PostObviously you can use bitwize operations to separate out the two bytes of each short and store them into consecutive elements of a byte array (and vice-versa), but does anyone know a smarter solution?
Jump to PostYou posted someone else's code without permission, in violation of the Member Rules. I am not advising you, I am warning you. Write yor own code, and post that.
All 7 Replies
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
lena1990 -3 Junior Poster in Training
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
lena1990 -3 Junior Poster in Training
JamesCherrill commented: Posting someone else's code without proper attribution. Lazy cheat. -3
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
lena1990 -3 Junior Poster in Training
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.