pub unsafe extern "C-unwind" fn JxlDecoderSetInput(
dec: *mut JxlDecoder,
data: *const u8,
size: usize,
) -> JxlDecoderStatusExpand description
Sets input data for JxlDecoderProcessInput. The data is owned by the
caller and may be used by the decoder until JxlDecoderReleaseInput is
called or the decoder is destroyed or reset, so it must be kept alive until then.
Cannot be called if JxlDecoderSetInput was already called and JxlDecoderReleaseInput
was not yet called, and cannot be called after JxlDecoderCloseInput indicating the end
of input was called.
§Parameters
dec: decoder objectdata: pointer to next bytes to read fromsize: amount of bytes available starting from data
§Returns
JxlDecoderStatus::Errorif input was already set without releasing orJxlDecoderCloseInputwas already calledJxlDecoderStatus::Successotherwise