Skip to content

Declared in <galanthus/c_api/gln_capi.h>.

GLN_API gln_status_t GLN_CALL gln_set_direct_debit_batch_request_item_capacity(
    gln_direct_debit_batch_request_builder_t* in_builder,
    size_t                                    in_item_capacity,
    gln_error_t*                              out_error_or_null);
  • Family: Builder configuration
  • Return type: gln_status_t

Purpose

Reserves storage for in_item_capacity items in the caller-owned gln_direct_debit_batch_request_builder_t so subsequent adds do not need to grow the internal buffer.

Calling this is a hint, not a hard limit: the builder still grows on demand if more items are added than reserved.

Nullable parameter slots (out_error_or_null) may be passed as NULL; all other non-value parameters follow the nullability shown in the table.

Return

Returns GLN_OK on success and a non-OK gln_status_t value on failure.

TypeNullabilityOwnership
gln_status_tvaluevalue

Parameters

NameDirectionTypeNullabilityOwnership
in_builderinputgln_direct_debit_batch_request_builder_t*nonnullborrowed
in_item_capacityinputsize_tvaluevalue
out_error_or_nulloutputgln_error_t*nullablecaller_allocated_output

See Also