![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Audio file or device URI. More...
#include <roc_address/io_uri.h>

Public Member Functions | |
| IoUri (core::IArena &) | |
| Initialize empty URI. | |
| bool | is_valid () const |
| Returns true if the URI has all required fields (scheme and path). | |
| bool | is_file () const |
| Returns true if the scheme is "file". | |
| bool | is_special_file () const |
| Returns true if the scheme is "file" and the path is "-". | |
| void | clear () |
| Clear all fields. | |
| const char * | scheme () const |
| URI scheme. May be "file" or device type, e.g. "alsa". | |
| bool | set_scheme (const char *str, size_t str_len) |
| Set URI scheme. String should not be zero-terminated. | |
| const char * | path () const |
| URI path. May be device name or file path depending on scheme. | |
| bool | set_encoded_path (const char *str, size_t str_len) |
| Set URI path. String should be percent-encoded. String should not be zero-terminated. | |
| bool | format_encoded_path (core::StringBuilder &dst) const |
| Get URI path. String will be percent-encoded. | |
|
explicit |
Initialize empty URI.
| void roc::address::IoUri::clear | ( | ) |
Clear all fields.
| bool roc::address::IoUri::format_encoded_path | ( | core::StringBuilder & | dst | ) | const |
Get URI path. String will be percent-encoded.
| bool roc::address::IoUri::is_file | ( | ) | const |
Returns true if the scheme is "file".
| bool roc::address::IoUri::is_special_file | ( | ) | const |
Returns true if the scheme is "file" and the path is "-".
| bool roc::address::IoUri::is_valid | ( | ) | const |
Returns true if the URI has all required fields (scheme and path).
| const char * roc::address::IoUri::path | ( | ) | const |
URI path. May be device name or file path depending on scheme.
| const char * roc::address::IoUri::scheme | ( | ) | const |
URI scheme. May be "file" or device type, e.g. "alsa".
| bool roc::address::IoUri::set_encoded_path | ( | const char * | str, |
| size_t | str_len | ||
| ) |
Set URI path. String should be percent-encoded. String should not be zero-terminated.
| bool roc::address::IoUri::set_scheme | ( | const char * | str, |
| size_t | str_len | ||
| ) |
Set URI scheme. String should not be zero-terminated.