struct final
#include <audioreader.hpp>
v_1_0_0::BigEndianBytes Service: interpret sequences of 2 or 4 big endian bytes as integer.
Public static functions
- static auto to_int32(const char& b1, const char& b2, const char& b3, const char& b4) -> int32_t
- Service method: Interpret 4 bytes as a 32 bit (signed) integer with big endian storage, which means that the bits of b1 become the most significant bits of the result.
- static auto to_uint32(const char& b1, const char& b2, const char& b3, const char& b4) -> uint32_t
- Service method: Interpret 4 bytes as a 32 bit unsigned integer with big endian storage, which means that the bits of b1 become the most significant bits of the result.
Function documentation
static int32_t arcsdec:: v_1_0_0:: BigEndianBytes:: to_int32(const char& b1,
const char& b2,
const char& b3,
const char& b4)
Service method: Interpret 4 bytes as a 32 bit (signed) integer with big endian storage, which means that the bits of b1 become the most significant bits of the result.
Parameters | |
---|---|
b1 in | First input byte, provides most significant bits of the result |
b2 in | Second input byte |
b3 in | Third input byte |
b4 in | Fourth input byte, provides least significant bits of the result |
Returns | The bytes as 32 bit (signed) integer |
static uint32_t arcsdec:: v_1_0_0:: BigEndianBytes:: to_uint32(const char& b1,
const char& b2,
const char& b3,
const char& b4)
Service method: Interpret 4 bytes as a 32 bit unsigned integer with big endian storage, which means that the bits of b1 become the most significant bits of the result.
Parameters | |
---|---|
b1 in | First input byte, provides most significant bits of the result |
b2 in | Second input byte |
b3 in | Third input byte |
b4 in | Fourth input byte, provides least significant bits of the result |
Returns | The bytes as 32 bit unsigned integer |