#[unsafe(no_mangle)]pub unsafe extern "C" fn hurray_writer_new(
transport: *const HurrayTransport,
options: *const HurrayWriterOptions,
out_handle: *mut *mut HurrayWriter,
) -> HurrayStatusExpand description
Creates a writer over transport.
The vtable is copied, so the caller MAY free the HurrayTransport struct immediately;
its ctx must stay valid until the writer is destroyed, at which point the vtable’s
release callback is invoked.
§Arguments
transport— Non-null; itswritecallback MUST be non-null.options— MAY be null forHurrayWriterOptions’ documented defaults.out_handle— Non-null pointer to a*mut HurrayWriter; set on success.
§Safety
transportMUST point to a readableHurrayTransportfor the duration of the call.options, if non-null, MUST point to a readableHurrayWriterOptions.out_handleMUST be a valid, non-null, writable pointer.