template <typename Storage>

class ExtendedStorageTraits

Defined at line 256 of file ../../src/lib/zbitl/include/lib/zbitl/storage-traits.h

ExtendedStorageTraits is a thin wrapper that provides static, constexpr,

convenience accessors for determining whether the traits support a

particular optional method. This permits the library (and similarly its

users) to write things like

```

requires(Traits::CanWrite())

```

template parameters to functions that only make sense in the context

of writable storage.

Public Methods

bool CanWrite ()

Whether Traits::Write() is defined.

Defined at line 270 of file ../../src/lib/zbitl/include/lib/zbitl/storage-traits.h

bool CanCreate ()

Whether Traits::Create() is defined.

Defined at line 273 of file ../../src/lib/zbitl/include/lib/zbitl/storage-traits.h

template <typename U, bool LowLocality>
bool CanOneShotRead ()

Whether the one-shot variation of Traits::Read() is defined.

Defined at line 277 of file ../../src/lib/zbitl/include/lib/zbitl/storage-traits.h

bool CanUnbufferedRead ()

Whether the unbuffered variation of Traits::Read() is defined.

Defined at line 282 of file ../../src/lib/zbitl/include/lib/zbitl/storage-traits.h

bool CanUnbufferedWrite ()

Whether the unbuffered variation of Traits::Write() is defined.

Defined at line 285 of file ../../src/lib/zbitl/include/lib/zbitl/storage-traits.h

template <typename Data>
fit::result<error_type, LocalizedReadResult<Data>> LocalizedRead (Storage & storage, uint32_t offset)

Defined at line 300 of file ../../src/lib/zbitl/include/lib/zbitl/storage-traits.h

Storage & storage_declval ()

Gives an 'example' value of a type convertible to storage

&

that can be

used within a decltype context.

Defined at line 343 of file ../../src/lib/zbitl/include/lib/zbitl/storage-traits.h

bool NoSlop (uint32_t slop)

Defined at line 347 of file ../../src/lib/zbitl/include/lib/zbitl/storage-traits.h