Concord - C Discord API library
A Discord API wrapper library written in C
types.h
Go to the documentation of this file.
1
3
#ifndef CONCORD_TYPES_H
4
#define CONCORD_TYPES_H
5
6
#include <stddef.h>
7
#include <stdint.h>
8
22
typedef
uint64_t
u64unix_ms
;
28
typedef
uint64_t
u64snowflake
;
29
35
typedef
uint64_t
u64bitmask
;
36
44
typedef
char
json_char
;
45
47
struct
ccord_szbuf
{
49
char
*
start
;
51
size_t
size
;
52
};
53
55
struct
ccord_szbuf_readonly
{
57
const
char
*
start
;
59
size_t
size
;
60
};
61
63
struct
ccord_szbuf_reusable
{
65
char
*
start
;
67
size_t
size
;
69
size_t
realsize
;
70
};
71
74
#endif
/* CONCORD_TYPES_H */
u64snowflake
uint64_t u64snowflake
Snowflake datatype.
Definition:
types.h:28
u64bitmask
uint64_t u64bitmask
Bitmask primitive.
Definition:
types.h:35
u64unix_ms
uint64_t u64unix_ms
Unix time in milliseconds.
Definition:
types.h:22
json_char
char json_char
Raw JSON string.
Definition:
types.h:44
ccord_szbuf_readonly
Read-only generic sized buffer.
Definition:
types.h:55
ccord_szbuf_readonly::size
size_t size
Definition:
types.h:59
ccord_szbuf_readonly::start
const char * start
Definition:
types.h:57
ccord_szbuf_reusable
Reusable generic sized buffer.
Definition:
types.h:63
ccord_szbuf_reusable::realsize
size_t realsize
Definition:
types.h:69
ccord_szbuf_reusable::start
char * start
Definition:
types.h:65
ccord_szbuf_reusable::size
size_t size
Definition:
types.h:67
ccord_szbuf
Generic sized buffer.
Definition:
types.h:47
ccord_szbuf::size
size_t size
Definition:
types.h:51
ccord_szbuf::start
char * start
Definition:
types.h:49
core
types.h
Generated by
1.9.3