libtcspc C++ API
Streaming TCSPC and time tag data processing
Loading...
Searching...
No Matches
Integers

Description

Facilities for reading integers from bit-packed records.

Namespaces

namespace  tcspc::int_types
 Short names for fixed-width integer types.
namespace  tcspc::literals
 User-defined literals for tcspc::npint.

Classes

class  tcspc::npint< T >
 Non-promoted integers. More...

Typedefs

using tcspc::i16np = npint<i16>
 Non-promoted signed 16-bit integer.
using tcspc::i32np = npint<i32>
 Non-promoted signed 32-bit integer.
using tcspc::i64np = npint<i64>
 Non-promoted signed 64-bit integer.
using tcspc::i8np = npint<i8>
 Non-promoted signed 8-bit integer.
using tcspc::u16np = npint<u16>
 Non-promoted unsigned 16-bit integer.
using tcspc::u32np = npint<u32>
 Non-promoted unsigned 32-bit integer.
using tcspc::u64np = npint<u64>
 Non-promoted unsigned 64-bit integer.
using tcspc::u8np = npint<u8>
 Non-promoted unsigned 8-bit integer.

Functions

template<std::size_t Offset, std::convertible_to< std::byte > T, std::size_t N>
constexpr auto tcspc::read_i16le_at (std::span< T, N > bytes) noexcept -> i16np
 Read a little-endian 16-bit signed integer from bytes at offset.
template<std::size_t Offset, std::convertible_to< std::byte > T, std::size_t N>
constexpr auto tcspc::read_i32le_at (std::span< T, N > bytes) noexcept -> i32np
 Read a little-endian 32-bit signed integer from bytes at offset.
template<std::size_t Offset, std::convertible_to< std::byte > T, std::size_t N>
constexpr auto tcspc::read_i64le_at (std::span< T, N > bytes) noexcept -> i64np
 Read a little-endian 64-bit signed integer from bytes at offset.
template<std::size_t Offset, std::convertible_to< std::byte > T, std::size_t N>
constexpr auto tcspc::read_i8_at (std::span< T, N > bytes) noexcept -> i8np
 Read an 8-bit signed integer from bytes at offset.
template<std::size_t Offset, std::convertible_to< std::byte > T, std::size_t N>
constexpr auto tcspc::read_u16le_at (std::span< T, N > bytes) noexcept -> u16np
 Read a little-endian 16-bit unsigned integer from bytes at offset.
template<std::size_t Offset, std::convertible_to< std::byte > T, std::size_t N>
constexpr auto tcspc::read_u32le_at (std::span< T, N > bytes) noexcept -> u32np
 Read a little-endian 32-bit unsigned integer from bytes at offset.
template<std::size_t Offset, std::convertible_to< std::byte > T, std::size_t N>
constexpr auto tcspc::read_u64le_at (std::span< T, N > bytes) noexcept -> u64np
 Read a little-endian 64-bit unsigned integer from bytes at offset.
template<std::size_t Offset, std::convertible_to< std::byte > T, std::size_t N>
constexpr auto tcspc::read_u8_at (std::span< T, N > bytes) noexcept -> u8np
 Read an 8-bit unsigned integer from bytes at offset.