Function anjay_ret_u64

Function Documentation

int anjay_ret_u64(anjay_output_ctx_t *ctx, uint64_t value)

Returns a 64-bit unsigned integer from the data model handler.

Note: the only difference between anjay_ret_u32 and anjay_ret_u64 is the size of the value parameter. Actual number of bytes sent on the wire depends on the value.

Parameters:
  • ctx – Output context to operate on.

  • value – The value to return.

Returns:

0 on success, a negative value in case of error.