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