#include <di/vocab/bytes/byte_buffer.h>
Public Types | |
using | Store = ByteStore<Alloc> |
using | ByteBuffer = ByteBufferImpl |
Public Member Functions | |
ByteBufferImpl ()=default | |
template<concepts::Impl< meta::List< AsByteSpan > > T> requires (!concepts::DerivedFrom<T, ByteBufferImpl> && !concepts::FallibleAllocator<Alloc>) | |
constexpr | ByteBufferImpl (T &&value) |
constexpr | ByteBufferImpl (Span< byte const > data, Store &&store) |
constexpr | ByteBufferImpl (Span< byte const > data, Store const &store) |
constexpr auto | data () const -> byte const * |
constexpr auto | size () const -> usize |
constexpr auto | span () const -> Span< byte const > |
constexpr auto | empty () const -> bool |
constexpr auto | store () const &-> Store const & |
constexpr auto | first (usize count) const -> Optional< ByteBufferImpl > |
constexpr auto | last (usize count) const -> Optional< ByteBufferImpl > |
constexpr auto | slice (usize offset) const -> Optional< ByteBufferImpl > |
constexpr auto | slice (usize offset, usize count) const -> Optional< ByteBufferImpl > |
Static Public Member Functions | |
template<concepts::Impl< meta::List< AsByteSpan > > T> requires (!concepts::DerivedFrom<T, ByteBufferImpl> && concepts::FallibleAllocator<Alloc>) | |
static constexpr auto | create (T &&value) -> meta::LikeExpected< meta::AllocatorResult< Alloc >, ByteBufferImpl > |
using di::vocab::byte_buffer::ByteBufferImpl< Alloc >::ByteBuffer = ByteBufferImpl |
using di::vocab::byte_buffer::ByteBufferImpl< Alloc >::Store = ByteStore<Alloc> |
|
default |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |