12#include "openvr_driver.h"
19 Open(
const char *pchPath,
20 vr::EIOBufferMode mode,
21 uint32_t unElementSize,
23 vr::IOBufferHandle_t *pulBuffer)
override;
27 Close(vr::IOBufferHandle_t ulBuffer)
override;
31 Read(vr::IOBufferHandle_t ulBuffer,
void *pDst, uint32_t unBytes, uint32_t *punRead)
override;
35 Write(vr::IOBufferHandle_t ulBuffer,
void *pSrc, uint32_t unBytes)
override;
38 vr::PropertyContainerHandle_t
43 HasReaders(vr::IOBufferHandle_t ulBuffer)
override;
Definition: iobuffer.hpp:15
vr::EIOBufferError Open(const char *pchPath, vr::EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, vr::IOBufferHandle_t *pulBuffer) override
opens an existing or creates a new IOBuffer of unSize bytes
Definition: iobuffer.cpp:14
vr::PropertyContainerHandle_t PropertyContainer(vr::IOBufferHandle_t ulBuffer) override
retrieves the property container of an buffer.
Definition: iobuffer.cpp:42
bool HasReaders(vr::IOBufferHandle_t ulBuffer) override
inexpensively checks for readers to allow writers to fast-fail potentially expensive copies and write...
Definition: iobuffer.cpp:48
vr::EIOBufferError Write(vr::IOBufferHandle_t ulBuffer, void *pSrc, uint32_t unBytes) override
writes unBytes of data from *pSrc into a buffer.
Definition: iobuffer.cpp:36
vr::EIOBufferError Close(vr::IOBufferHandle_t ulBuffer) override
closes a previously opened or created buffer
Definition: iobuffer.cpp:24
vr::EIOBufferError Read(vr::IOBufferHandle_t ulBuffer, void *pDst, uint32_t unBytes, uint32_t *punRead) override
reads up to unBytes from buffer into *pDst, returning number of bytes read in *punRead
Definition: iobuffer.cpp:30