|
livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
|
Little-endian byte helpers used by the protocol layer. More...
#include <bit>#include <cstddef>#include <cstdint>#include <cstring>#include <span>#include <type_traits>Go to the source code of this file.
Namespaces | |
| namespace | livox |
| Livox LiDAR drivers. | |
| namespace | livox::mid360 |
| The livox_mid360_core library: everything declared by the public headers. | |
| namespace | livox::mid360::bytes |
| Little-endian byte helpers used by the protocol layer (bytes.hpp). | |
Functions | |
| template<typename T> requires std::is_trivially_copyable_v<T> | |
| T | livox::mid360::bytes::read_le (std::span< const std::byte > in, std::size_t offset) noexcept |
| Reads a little-endian trivially-copyable value from in at byte offset. | |
| template<typename T> requires std::is_trivially_copyable_v<T> | |
| void | livox::mid360::bytes::write_le (std::span< std::byte > out, std::size_t offset, T v) noexcept |
| Writes v little-endian into out at byte offset. | |
|
template<typename T> requires std::is_trivially_copyable_v<T> | |
| std::span< const std::byte > | livox::mid360::bytes::as_bytes (std::span< const T > s) noexcept |
| Reinterprets a contiguous range of trivially-copyable objects as bytes. | |
| std::span< const std::byte > | livox::mid360::bytes::as_bytes (const char *s, std::size_t n) noexcept |
| Views n characters starting at s as bytes. | |
Little-endian byte helpers used by the protocol layer.
Header-only, no I/O.