ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_net_curl_body_state_t Struct Reference

Test-visible bounded adapter from libcurl chunks to an injected sink. More...

#include <mdl_net_curl_internal.h>

Collaboration diagram for mdl_net_curl_body_state_t:

Data Fields

mdl_net_body_sink_tsink
 Borrowed injected body sink.
uint64_t written
 Bytes accepted across completed chunks.
uint64_t cap
 Response cap, or zero for no cap.
ra8_err_t sink_error
 First callback failure, or k_ra8_ok.
bool overflow
 Arithmetic or configured cap was hit.

Detailed Description

Test-visible bounded adapter from libcurl chunks to an injected sink.

Invariant
written <= cap whenever overflow is false and cap is nonzero.
Since
0.1.0

Definition at line 53 of file mdl_net_curl_internal.h.

Field Documentation

◆ cap

uint64_t mdl_net_curl_body_state_t::cap

Response cap, or zero for no cap.

Definition at line 56 of file mdl_net_curl_internal.h.

Referenced by priv_mdl_net_curl_body_write().

◆ overflow

bool mdl_net_curl_body_state_t::overflow

Arithmetic or configured cap was hit.

Definition at line 58 of file mdl_net_curl_internal.h.

Referenced by internal_curl_get_body(), and priv_mdl_net_curl_body_write().

◆ sink

mdl_net_body_sink_t* mdl_net_curl_body_state_t::sink

Borrowed injected body sink.

Definition at line 54 of file mdl_net_curl_internal.h.

Referenced by priv_mdl_net_curl_body_write().

◆ sink_error

ra8_err_t mdl_net_curl_body_state_t::sink_error

First callback failure, or k_ra8_ok.

Definition at line 57 of file mdl_net_curl_internal.h.

Referenced by internal_curl_get_body(), and priv_mdl_net_curl_body_write().

◆ written

uint64_t mdl_net_curl_body_state_t::written

Bytes accepted across completed chunks.

Definition at line 55 of file mdl_net_curl_internal.h.

Referenced by internal_curl_get_body(), and priv_mdl_net_curl_body_write().


The documentation for this struct was generated from the following file: