1 /* Capstone Disassembly Engine */ 2 /* By Nguyen Anh Quynh <aquynh (at) gmail.com>, 2013-2014 */ 3 4 #ifndef CS_SSTREAM_H_ 5 #define CS_SSTREAM_H_ 6 7 typedef struct SStream { 8 char buffer[512]; 9 int index; 10 } SStream; 11 12 void SStream_Init(SStream *ss); 13 14 void SStream_concat(SStream *ss, const char *fmt, ...); 15 16 void SStream_concat0(SStream *ss, char *s); 17 18 void printInt64Bang(SStream *O, int64_t val); 19 20 void printUInt64Bang(SStream *O, uint64_t val); 21 22 void printInt64(SStream *O, int64_t val); 23 24 void printInt32Bang(SStream *O, int32_t val); 25 26 void printInt32(SStream *O, int32_t val); 27 28 void printUInt32Bang(SStream *O, uint32_t val); 29 30 void printUInt32(SStream *O, uint32_t val); 31 32 // print number in decimal mode 33 void printInt32BangDec(SStream *O, int32_t val); 34 35 #endif 36