src/bytestream.h
3f899953
 /* Functions for reading data from byte streams. Inlined because they
    are tiny and need to be fast. */
 
 static inline int
 read_int (unsigned char **bytes) {
   int x = ((int *)*bytes)[0];
   *bytes += sizeof(int);
   return x;
 }
 
c78be696
 static inline unsigned char
3f899953
 read_char (unsigned char **bytes) {
c78be696
   unsigned char x = (*bytes)[0];
3f899953
   (*bytes)++;
   return x;
 }
 
c78be696
 
3f899953
 static inline const char *
 read_string (unsigned char **bytes) {
8418591e
   const char *string = (char *)*bytes;
3f899953
   (*bytes) += strlen(string) + 1;
   return string;
 }