#pragma once #include "Error.h" #include "fs/Api.h" #include "tl/result.h" namespace fs { class IStreamSource; typedef tl::result ProcessStreamResult; typedef tl::function data)> ProcessDataCallback; // This API Reads the provided stream and pipes it through the provided data callback to allow implementation of custom filters/encodings. FS_API ProcessStreamResult processStream(IStreamSource& source, const ProcessDataCallback& dataCallback, size_t bufferSize = 0); }