Skip to main content
gamedev.net
🔒 Locked

reading bits?

Started by Odiee Dec 16, 2005 at 3:41 AM 0 replies 300+ views
Original Post
Odiee
Odiee
here's the problem. I'm passing char *somedata; witch is the stream that writes 120038846315this is message" the numbers are header of message. I know that first 4 bytes identifies int. i.e. the number 1 in the stream is type od stream. and in the end is the stream length 15. but since the numbers are connected I don't have the way of knowing witch is witch number. And I'm wondering is the solution, reading bits, i.e. reading the first 24bits and it is the first number and how that is done? thanx.
Odiee
Odiee
never mind I figured out.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.