Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/capstone/SStream.h
4387 views
1
/* Capstone Disassembly Engine */
2
/* By Nguyen Anh Quynh <[email protected]>, 2013-2019 */
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 SStream_concat1(SStream *ss, const char c);
21
22
void printInt64Bang(SStream *O, int64_t val);
23
24
void printUInt64Bang(SStream *O, uint64_t val);
25
26
void printInt64(SStream *O, int64_t val);
27
void printUInt64(SStream *O, uint64_t val);
28
29
void printInt32Bang(SStream *O, int32_t val);
30
31
void printInt32(SStream *O, int32_t val);
32
33
void printUInt32Bang(SStream *O, uint32_t val);
34
35
void printUInt32(SStream *O, uint32_t val);
36
37
// print number in decimal mode
38
void printInt32BangDec(SStream *O, int32_t val);
39
40
#endif
41
42