wavelength 1.0.0
Loading...
Searching...
No Matches
byteorder.h File Reference
#include <cstddef>
#include <cstdint>
#include <span>
Include dependency graph for byteorder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Tools
namespace  Tools::Common
 Code that the host tools share.

Functions

std::uint16_t Tools::Common::readLittle16 (std::span< const std::uint8_t > bytes, std::size_t offset)
 Read a little-endian 16-bit value.
std::uint32_t Tools::Common::readLittle32 (std::span< const std::uint8_t > bytes, std::size_t offset)
 Read a little-endian 32-bit value.
void Tools::Common::writeLittle (std::span< std::uint8_t > bytes, std::size_t offset, std::uint32_t value, std::size_t width=4)
 Write a little-endian value.
void Tools::Common::writeBig (std::span< std::uint8_t > bytes, std::size_t offset, std::uint32_t value, std::size_t width=4)
 Write a big-endian value.
void Tools::Common::writeBoth (std::span< std::uint8_t > bytes, std::size_t offset, std::uint32_t value, std::size_t width=4)
 Write a value in the ISO9660 both-endian form, little-endian followed by big-endian.