DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
discord_core_api::discord_core_internal::etf_parser Class Reference

Class for parsing etf data into json format. More...

#include <Etf.hpp>

Inherits jsonifier_internal::alloc_wrapper< uint8_t >.

Inherited by discord_core_api::discord_core_internal::websocket_core.

Public Member Functions

jsonifier::string_view_base< uint8_t > parseEtfToJson (jsonifier::string_view_base< uint8_t > dataToParse)
 Parse etf data to json format. More...
 

Member Function Documentation

◆ parseEtfToJson()

jsonifier::string_view_base< uint8_t > discord_core_api::discord_core_internal::etf_parser::parseEtfToJson ( jsonifier::string_view_base< uint8_t >  dataToParse)
inline
Parameters
dataToParsethe etf data to be parsed.
Returns
the json representation of the parsed data.

Definition at line 129 of file Etf.hpp.

◆ readBitsFromBuffer()

template<typename return_type >
return_type discord_core_api::discord_core_internal::etf_parser::readBitsFromBuffer ( )
inlineprotected
Template Parameters
return_typethe type to convert the read data to.
Returns
the converted value.

Definition at line 152 of file Etf.hpp.

Here is the call graph for this function:

◆ writeCharacter() [1/2]

template<const char charToWrite>
void discord_core_api::discord_core_internal::etf_parser::writeCharacter ( )
inlineprotected
Template Parameters
valuethe character to write.

Definition at line 263 of file Etf.hpp.

◆ writeCharacter() [2/2]

template<typename value_type >
void discord_core_api::discord_core_internal::etf_parser::writeCharacter ( const value_type  value)
inlineprotected
Parameters
valuethe character to write.

Definition at line 254 of file Etf.hpp.

◆ writeCharacters()

void discord_core_api::discord_core_internal::etf_parser::writeCharacters ( const char *  data,
uint64_t  length 
)
inlineprotected
Parameters
datapointer to the data to be written.
lengthnumber of characters to write.

Definition at line 166 of file Etf.hpp.

◆ writeCharactersFromBuffer()

void discord_core_api::discord_core_internal::etf_parser::writeCharactersFromBuffer ( uint32_t  length)
inlineprotected
Parameters
lengthnumber of characters to write from the buffer.

Definition at line 176 of file Etf.hpp.


The documentation for this class was generated from the following file: