DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
DiscordCoreInternal

For all of the internal api stuff. More...

Concepts

concept  discord_core_api::discord_core_internal::array_t
 Concept for array types excluding etf_serializer.
 
concept  discord_core_api::discord_core_internal::object_t
 Concept for object (associative container) types excluding etf_serializer.
 

Classes and Structures

class  discord_core_api::discord_core_internal::co_routine_thread_pool
 A class representing a coroutine-based thread pool. More...
 
struct  discord_core_api::discord_core_internal::encoder_return_data
 Structure to hold the encoded data and sample count returned by the encoder. More...
 
struct  discord_core_api::discord_core_internal::etf_parse_error
 Exception class for etf parsing errors. More...
 
class  discord_core_api::discord_core_internal::etf_parser
 Class for parsing etf data into json format. More...
 
struct  discord_core_api::discord_core_internal::etf_serialize_error
 Custom exception class for etf serialization errors. More...
 
class  discord_core_api::discord_core_internal::https_client
 For sending Https requests. More...
 
class  discord_core_api::discord_core_internal::matroska_demuxer
 A class for demuxing Matroska-contained audio data. More...
 
class  discord_core_api::discord_core_internal::ogg_demuxer
 A class for demuxing Ogg-contained audio data. More...
 
class  discord_core_api::discord_core_internal::ogg_page
 A class representing an Ogg page for demuxing. More...
 
struct  discord_core_api::discord_core_internal::opus_decoder_wrapper
 A wrapper class for the opus audio decoder. More...
 
struct  discord_core_api::discord_core_internal::opus_encoder_wrapper
 Wrapper class for the opus audio encoder. More...
 
class  discord_core_api::discord_core_internal::ring_buffer< value_type_new, slice_count >
 A template implementation of a ring buffer using ring_buffer_interface. More...
 
class  discord_core_api::discord_core_internal::ring_buffer_interface< value_type_new, size >
 A template interface for a ring buffer. More...
 
struct  discord_core_api::discord_core_internal::worker_thread
 A struct representing a worker thread for coroutine-based tasks. More...
 

Enumerations

enum class  discord_core_api::discord_core_internal::json_type : uint8_t
 Enumeration for different json value types.
 
enum class  discord_core_api::discord_core_internal::ring_buffer_access_type
 Enum representing different access types for a ring buffer.
 

Functions

template<typename return_type >
return_type discord_core_api::discord_core_internal::reverseByteOrder (return_type net)
 Reverses the byte order of a value if needed, based on the endianness. More...
 
template<typename return_type , typename value_type >
void discord_core_api::discord_core_internal::storeBits (value_type *to, return_type num)
 Stores the bits of a number into a character array. More...
 

Function Documentation

◆ reverseByteOrder()

template<typename return_type >
return_type discord_core_api::discord_core_internal::reverseByteOrder ( return_type  net)
inline
Template Parameters
return_typethe type of the value to reverse.
Parameters
netthe value to reverse.
Returns
the reversed value.

Definition at line 60 of file Etf.hpp.

Here is the caller graph for this function:

◆ storeBits()

template<typename return_type , typename value_type >
void discord_core_api::discord_core_internal::storeBits ( value_type *  to,
return_type  num 
)
inline
Template Parameters
return_typethe type of the number.
Parameters
tothe character array to store the bits.
numthe number whose bits are to be stored.

Definition at line 85 of file Etf.hpp.

Here is the call graph for this function: