Type Alias OrthancPluginServerChunkedRequestReaderAddChunk

Source
pub type OrthancPluginServerChunkedRequestReaderAddChunk = Option<unsafe extern "C" fn(reader: *mut OrthancPluginServerChunkedRequestReader, data: *const c_void, size: u32) -> OrthancPluginErrorCode>;
Expand description

@brief Callback invoked whenever a new data chunk is available during a chunked transfer.

Signature of a callback function that is called by Orthanc acting as a HTTP server that supports chunked HTTP transfers. This callback is invoked as soon as a new data chunk is available for the request body.

@see OrthancPluginRegisterChunkedRestCallback() @param reader The user payload, as created by the OrthancPluginServerChunkedRequestReaderFactory() callback. @param data The content of the data chunk. @param size The size of the data chunk. @return 0 if success, or the error code if failure.

Aliased Type§

pub enum OrthancPluginServerChunkedRequestReaderAddChunk {
    None,
    Some(unsafe extern "C" fn(*mut _OrthancPluginServerChunkedRequestReader_t, *const c_void, u32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut _OrthancPluginServerChunkedRequestReader_t, *const c_void, u32) -> i32)

Some value of type T.