StreamResource
StreamResource
Section titled “StreamResource”#include <sbio/core/stream.hh>struct StreamResourceDefined in src/lib/sbio/core/stream.hh:55
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
StreamResourceType |
type |
|
union sbio::StreamResource::Handle |
handle |
StreamResourceType type { StreamResourceType::Path }Type: StreamResourceType
Defined in src/lib/sbio/core/stream.hh:56
handle
Section titled “handle”union sbio::StreamResource::Handle handleType: union sbio::StreamResource::Handle
Defined in src/lib/sbio/core/stream.hh:71
Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
SBIO_HDStreamResource |
from_path static inline |
|
SBIO_HDStreamResource |
from_fd static inline |
|
SBIO_HDStreamResource |
from_memory static inline |
from_path
Section titled “from_path”static inline
static inline SBIO_HDStreamResource from_path(const char * p)Defined in src/lib/sbio/core/stream.hh:73
from_fd
Section titled “from_fd”static inline
static inline SBIO_HDStreamResource from_fd(int fd)Defined in src/lib/sbio/core/stream.hh:80
from_memory
Section titled “from_memory”static inline
static inline SBIO_HDStreamResource from_memory(void * ptr, std::size_t size)Defined in src/lib/sbio/core/stream.hh:96