Namespace endstone::nbt::detail¶
Namespace List > endstone > nbt > detail
Public Functions¶
| Type | Name |
|---|---|
| void | read_bytes (std::string_view & in, void * dst, std::size_t n) |
| std::int32_t | read_length (std::string_view & in, std::endian byte_order, bool network) |
| std::string | read_string (std::string_view & in, std::endian byte_order, bool network) |
| Tag | read_tag_payload (std::string_view & in, Type type, std::endian byte_order, bool network) |
| T | read_value (std::string_view & in, std::endian byte_order) |
| std::uint32_t | read_varint (std::string_view & in) |
| std::uint64_t | read_varint64 (std::string_view & in) |
| std::int32_t | read_zigzag32 (std::string_view & in) |
| std::int64_t | read_zigzag64 (std::string_view & in) |
| void | write_bytes (std::string & out, const void * data, std::size_t n) |
| void | write_length (std::string & out, std::int32_t len, std::endian byte_order, bool network) |
| void | write_string (std::string & out, const std::string & str, std::endian byte_order, bool network) |
| void | write_tag_payload (std::string & out, const Tag & tag, std::endian byte_order, bool network) |
| void | write_value (std::string & out, T value, std::endian byte_order) |
| void | write_varint (std::string & out, std::uint32_t value) |
| void | write_varint64 (std::string & out, std::uint64_t value) |
| void | write_zigzag32 (std::string & out, std::int32_t value) |
| void | write_zigzag64 (std::string & out, std::int64_t value) |
| std::int32_t | zigzag_decode32 (std::uint32_t value) |
| std::int64_t | zigzag_decode64 (std::uint64_t value) |
| std::uint32_t | zigzag_encode32 (std::int32_t value) |
| std::uint64_t | zigzag_encode64 (std::int64_t value) |
Public Functions Documentation¶
function read_bytes¶
function read_length¶
inline std::int32_t endstone::nbt::detail::read_length (
std::string_view & in,
std::endian byte_order,
bool network
)
function read_string¶
inline std::string endstone::nbt::detail::read_string (
std::string_view & in,
std::endian byte_order,
bool network
)
function read_tag_payload¶
inline Tag endstone::nbt::detail::read_tag_payload (
std::string_view & in,
Type type,
std::endian byte_order,
bool network
)
function read_value¶
template<typename T>
T endstone::nbt::detail::read_value (
std::string_view & in,
std::endian byte_order
)
function read_varint¶
function read_varint64¶
function read_zigzag32¶
function read_zigzag64¶
function write_bytes¶
inline void endstone::nbt::detail::write_bytes (
std::string & out,
const void * data,
std::size_t n
)
function write_length¶
inline void endstone::nbt::detail::write_length (
std::string & out,
std::int32_t len,
std::endian byte_order,
bool network
)
function write_string¶
inline void endstone::nbt::detail::write_string (
std::string & out,
const std::string & str,
std::endian byte_order,
bool network
)
function write_tag_payload¶
inline void endstone::nbt::detail::write_tag_payload (
std::string & out,
const Tag & tag,
std::endian byte_order,
bool network
)
function write_value¶
template<typename T>
void endstone::nbt::detail::write_value (
std::string & out,
T value,
std::endian byte_order
)
function write_varint¶
function write_varint64¶
function write_zigzag32¶
function write_zigzag64¶
function zigzag_decode32¶
function zigzag_decode64¶
function zigzag_encode32¶
function zigzag_encode64¶
The documentation for this class was generated from the following file include/endstone/nbt/io.h