|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
POD-safe minimal byte-range view with reinterpreting and cloning utilities. More...
#include <cstddef>#include <cstdint>#include <memory>#include <new>#include <cstring>#include "jh/pods/pod_like.h"#include "jh/metax/hash.h"Go to the source code of this file.
Classes | |
| struct | jh::pod::bytes_view |
| A read-only view over a block of raw bytes. More... | |
Namespaces | |
| namespace | jh::pod |
| Aggregated entry point for Plain-Old-Data and layout-stable value utilities. | |
Concepts | |
| concept | jh::pod::trivial_bytes |
| Concept for trivially layout-compatible types (POD-compatible memory view). | |
POD-safe minimal byte-range view with reinterpreting and cloning utilities.
This header defines jh::pod::bytes_view — a low-level, read-only, non-owning abstraction over raw memory regions. It enables safe reinterpretation and controlled cloning of memory blocks into POD-compatible types.
const std::byte* + uint64_t) at, fetch) clone) pod_like and trivial_bytes types