About
An input stream is used to read data from a resource defined with a maxon::Url. maxon::InputStreamInterface is based on maxon::BaseStreamInterface.
Usage
maxon::InputStreamInterface provides these functions:
{
const maxon::InputStreamRef inputStream = url.OpenInputStream()
iferr_return;
}
Definition: basearray.h:415
ResultMem Resize(Int newCnt, COLLECTION_RESIZE_FLAGS resizeFlags=COLLECTION_RESIZE_FLAGS::DEFAULT)
Definition: basearray.h:1218
Definition: string.h:1237
Int64 Int
signed 32/64 bit int, size depends on the platform
Definition: apibase.h:202
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:170
PyWideStringList Py_ssize_t length
Definition: initconfig.h:448
PyObject * text
Definition: pycore_traceback.h:70
#define iferr_return
Definition: resultbase.h:1524
if (isHTTP || isHTTPS)
{
const maxon::InputStreamRef inputStream = webFile.OpenInputStream()
iferr_return;
const maxon::OutputStreamRef outputStream = localFile.OpenOutputStream()
iferr_return;
}
Definition: apibaseid.h:243
bool Bool
boolean type, possible values are only false/true, 8 bit
Definition: apibase.h:195
int64_t Int64
64 bit signed integer datatype.
Definition: apibase.h:192
static constexpr LiteralId URLSCHEME_HTTP
Scheme identifier for Hypertext Transfer Protocol (HTTP) connections.
Definition: url.h:759
static constexpr LiteralId URLSCHEME_HTTPS
Scheme identifier for Hypertext Transfer Protocol Secure (HTTPS) connections.
Definition: url.h:765
The input stream maxon::InputStreamInterface::FromBlock can be used to read data from a memory block.
const maxon::InputStreamRef inputStream = maxon::InputStreamInterface::FromBlock().Create(memblock,
false)
iferr_return;
Block< const Char > CharToBlock(const Char *str)
Definition: block.h:1016
Further Reading