Nguyen Anh Quynh | 6023ef7 | 2014-04-29 11:21:04 +0800 | [diff] [blame] | 1 | /* Capstone Disassembly Engine */ |
| 2 | /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */ |
Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 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 | |
Nguyen Anh Quynh | b76233c | 2014-06-04 18:31:02 +0800 | [diff] [blame] | 16 | void SStream_concat0(SStream *ss, char *s); |
| 17 | |
Nguyen Anh Quynh | 46a74e5 | 2014-08-25 16:47:12 +0800 | [diff] [blame] | 18 | void printInt64Bang(SStream *O, int64_t val); |
| 19 | |
| 20 | void printInt64(SStream *O, int64_t val); |
| 21 | |
| 22 | void printInt32Bang(SStream *O, int32_t val); |
| 23 | |
| 24 | void printInt32(SStream *O, int32_t val); |
| 25 | |
| 26 | void printUInt32Bang(SStream *O, uint32_t val); |
| 27 | |
| 28 | void printUInt32(SStream *O, uint32_t val); |
| 29 | |
Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 30 | #endif |