#ifndef TYPES_HPP #define TYPES_HPP #include #include /// A pointer to a contiguous sequence of elements with a known length. /// /// # Parameters /// /// - `T`: The element type. Use `const T` for immutable data. template struct Slice { /// Pointer to the first element. T* data; /// Number of elements. size_t size; }; /// Mutable byte buffer. using Bytes = Slice; /// Immutable byte buffer. using ConstBytes = Slice; #endif // TYPES_HPP