blob: 9ccd35109c5eba55fc7aed1be7ecfc5597bb9d6b [file] [log] [blame]
Nguyen Anh Quynh6023ef72014-04-29 11:21:04 +08001/* Capstone Disassembly Engine */
Nguyen Anh Quynhbfcaba52015-03-04 17:45:23 +08002/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +08003
4#ifndef CS_SSTREAM_H_
5#define CS_SSTREAM_H_
6
Koutheir Attouchib914a1b2016-04-07 10:35:52 +02007#include "include/capstone/platform.h"
8
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +08009typedef struct SStream {
10 char buffer[512];
11 int index;
12} SStream;
13
14void SStream_Init(SStream *ss);
15
16void SStream_concat(SStream *ss, const char *fmt, ...);
17
Nguyen Anh Quynhb76233c2014-06-04 18:31:02 +080018void SStream_concat0(SStream *ss, char *s);
19
Nguyen Anh Quynh46a74e52014-08-25 16:47:12 +080020void printInt64Bang(SStream *O, int64_t val);
21
Nguyen Anh Quynh03a18362014-12-12 22:06:06 +080022void printUInt64Bang(SStream *O, uint64_t val);
23
Nguyen Anh Quynh46a74e52014-08-25 16:47:12 +080024void printInt64(SStream *O, int64_t val);
25
26void printInt32Bang(SStream *O, int32_t val);
27
28void printInt32(SStream *O, int32_t val);
29
30void printUInt32Bang(SStream *O, uint32_t val);
31
32void printUInt32(SStream *O, uint32_t val);
33
Nguyen Anh Quynhc109e8e2014-11-08 13:58:50 +080034// print number in decimal mode
35void printInt32BangDec(SStream *O, int32_t val);
36
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +080037#endif