6#include <iolink/IOLinkAPI.h>
8#include <iolink/storage/HTTPHeaders.h>
9#include <iolink/storage/RandomAccess.h>
10#include <iolink/storage/StreamAccess.h>
30 static std::shared_ptr<RandomAccess>
allocate(
size_t size);
37 static std::shared_ptr<RandomAccess>
copyInMemory(std::shared_ptr<RandomAccess> randomAccess);
47 static std::shared_ptr<RandomAccess>
mapFile(
const std::string& filePath);
55 static std::shared_ptr<RandomAccess>
fromBuffer(
void* buffer,
size_t size);
74 const std::string& method,
86 static std::shared_ptr<RandomAccess>
extractRegion(std::shared_ptr<RandomAccess> src,
size_t offset);
98 static std::shared_ptr<RandomAccess>
extractRegion(std::shared_ptr<RandomAccess> src,
size_t offset,
size_t size);
104 static std::shared_ptr<RandomAccess>
fromStream(std::shared_ptr<StreamAccess> stream);
A factory to create RandomAccess instances from various ressources.
Definition: RandomAccessFactory.h:19
static std::shared_ptr< RandomAccess > extractRegion(std::shared_ptr< RandomAccess > src, size_t offset)
Creates an accessor to a subset of a RandomAccess.
static std::shared_ptr< RandomAccess > openHTTPRead(const Uri &uri, const std::string &method, const HTTPHeaders &headers)
Create a RandomAccess from given HTTP URI, opening URI in Read Only.
static std::shared_ptr< RandomAccess > fromBuffer(void *buffer, size_t size)
Create a RandomAccess from given memory area.
static std::shared_ptr< RandomAccess > copyInMemory(std::shared_ptr< RandomAccess > randomAccess)
Load given RandomAccess in memory.
static std::shared_ptr< RandomAccess > openURIRead(const Uri &uri)
Create a RandomAccess from given URI, opening URI in Read Only.
static std::shared_ptr< RandomAccess > fromStream(std::shared_ptr< StreamAccess > stream)
Create a RandomAccess that will delegate to a StreamAccess.
static std::shared_ptr< RandomAccess > mapFile(const std::string &filePath)
Get an accessor from a file mapped in memory.
static std::shared_ptr< RandomAccess > extractRegion(std::shared_ptr< RandomAccess > src, size_t offset, size_t size)
Creates an accessor to a subset of a RandomAccess.
static std::shared_ptr< RandomAccess > allocate(size_t size)
Create an in-memory RandomAccess of given size.
Class modeling universal resource identifier.
Definition: Uri.h:14
All IOLink symbols are enclosed in this namespace.
Definition: ArrayX.h:8