8 #ifndef BSTREAMTAG_DEFINED
9 #define BSTREAMTAG_DEFINED 1
15 #define BSTREAM_UNSIGNED_INT 0
16 #define BSTREAM_SIGNED_INT 1
17 #define BSTREAM_FLOAT 2
18 #define BSTREAM_POINTER 3
22 unsigned int isArray
: 1;
23 unsigned int type
: 2; // 0 = unsigned int, 1 = signed int, 2 = float, 3 = pointer
24 unsigned int byteCount
: 5; // number of bytes in data value(s)
27 // values in network byte order / big endian
29 BStreamTag
BStreamTag_FromUnsignedChar(unsigned char c
);
30 unsigned char BStreamTag_asUnsignedChar(BStreamTag
*self
);
31 BStreamTag
BStreamTag_TagArray_type_byteCount_(unsigned int a
, unsigned int t
, unsigned int b
);
32 int BStreamTag_isEqual_(BStreamTag
*self
, BStreamTag
*other
);
33 void BStreamTag_print(BStreamTag
*self
);
35 char *BStreamTag_typeName(BStreamTag
*self
);