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;
}
if (isHTTP || isHTTPS)
{
const maxon::InputStreamRef inputStream = webFile.OpenInputStream()
iferr_return;
const maxon::OutputStreamRef outputStream = localFile.OpenOutputStream()
iferr_return;
}
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;
Further Reading