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.
|
jsonifier::string_view_base< uint8_t > | parseEtfToJson (jsonifier::string_view_base< uint8_t > dataToParse) |
| Parse etf data to json format. More...
|
|
◆ 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
-
dataToParse | the 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_type | the type to convert the read data to. |
- Returns
- the converted value.
Definition at line 152 of file Etf.hpp.
◆ writeCharacter() [1/2]
template<const char charToWrite>
void discord_core_api::discord_core_internal::etf_parser::writeCharacter |
( |
| ) |
|
|
inlineprotected |
- Template Parameters
-
value | the 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
-
value | the 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
-
data | pointer to the data to be written. |
length | number 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
-
length | number 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: