| IOLink 1.11.0

Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
iolink::RandomAccessProvider Class Reference

Utility class to check and convert a DataAccess into a RandomAccess. More...

`#include <iolink/storage/RandomAccessProvider.h>`

## Static Public Member Functions
static bool | isRandomAccess (std::shared_ptr< DataAccess > randomAccess) noexcept
| Checks if DataAccess supports RandomAccess interface.
static std::shared_ptr< RandomAccess > | toRandom (std::shared_ptr< DataAccess > accessor) noexcept
| Return the RandomAccess interface if the accessor supports it.

## Detailed Description

Utility class to check and convert a DataAccess into a RandomAccess.

## Member Function Documentation

## ◆ toRandom()

static std::shared_ptr< RandomAccess > iolink::RandomAccessProvider::toRandom | ( | std::shared_ptr< DataAccess > | accessor | ) |
| inline static noexcept

Return the RandomAccess interface if the accessor supports it.

If it does not support this interface, returns null.

The documentation for this class was generated from the following file:

- iolink/public/include/iolink/storage/RandomAccessProvider.h