Concord - C Discord API library
A Discord API wrapper library written in C
Primitives

Commonly used datatypes. More...

Data Structures

struct  ccord_szbuf
 Generic sized buffer. More...
 
struct  ccord_szbuf_readonly
 Read-only generic sized buffer. More...
 
struct  ccord_szbuf_reusable
 Reusable generic sized buffer. More...
 

Typedefs

typedef uint64_t u64unix_ms
 Unix time in milliseconds. More...
 
typedef uint64_t u64snowflake
 Snowflake datatype. More...
 
typedef uint64_t u64bitmask
 Bitmask primitive. More...
 
typedef char json_char
 Raw JSON string. More...
 

Detailed Description

Commonly used datatypes.

Note
these datatypes are typedefs of C primitives, its purpose is to facilitate identification and "intent of use".

Typedef Documentation

◆ u64unix_ms

typedef uint64_t u64unix_ms

Unix time in milliseconds.

Commonly used for fields that may store timestamps

◆ u64snowflake

typedef uint64_t u64snowflake

Snowflake datatype.

Used in APIs such as Twitter and Discord for their unique IDs

◆ u64bitmask

typedef uint64_t u64bitmask

Bitmask primitive.

Used for fields that may store values of, or perform bitwise operations

◆ json_char

typedef char json_char

Raw JSON string.

Used for fields that have dynamic or unreliable types. A string made out of json_char should be used to keep a raw JSON, which can then be parsed with the assistance of a JSON library.