resonance 1.0.1
Loading...
Searching...
No Matches
byteorder.h File Reference
#include <cstddef>
#include <cstdint>
#include <span>
Include dependency graph for byteorder.h:

Go to the source code of this file.

Namespaces

namespace  Tools
 Host tools that the build runs.
namespace  Tools::BuildImage
 Writer of a FreQuency disc image with the built executable and module in place.

Functions

std::uint16_t Tools::BuildImage::readLittle16 (std::span< const std::uint8_t > bytes, std::size_t offset)
 Read a little-endian 16-bit value.
std::uint32_t Tools::BuildImage::readLittle32 (std::span< const std::uint8_t > bytes, std::size_t offset)
 Read a little-endian 32-bit value.
void Tools::BuildImage::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::BuildImage::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::BuildImage::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.