|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
A writable byte region: the storage, the capacity that belongs to it, and what has been produced into it. More...
#include <span.h>
Public Attributes | |
| uint8_t * | buf |
| first byte, or nullptr when the region could not be obtained | |
| size_t | cap |
| bytes writable at buf (0 whenever buf is nullptr) | |
| size_t | pos |
| bytes the payload needs so far; keeps counting past cap on overflow | |
| bool | overflow |
| set once a write did not fit; pos then reports the size required | |
A writable byte region: the storage, the capacity that belongs to it, and what has been produced into it.
Field names match the bytes.h write-cursor convention on purpose - see the file comment.
| uint8_t* pc_span::buf |
first byte, or nullptr when the region could not be obtained
Definition at line 66 of file span.h.
Referenced by bn_expmod_group14(), pc_aes256ctr_crypt(), pc_aes256ctr_get_length(), pc_chacha20_block_ietf(), pc_chacha20_xor(), pc_chachapoly_decrypt(), pc_chachapoly_encrypt(), pc_chachapoly_get_length(), pc_hmac_sha256(), pc_hmac_sha256_final(), pc_hmac_sha256_init(), pc_md_wants(), pc_poly1305(), pc_span_after(), pc_span_first(), pc_span_from(), pc_span_has_storage(), pc_span_ok(), pc_span_produced(), pc_span_read(), and pc_ssh_server_dispatch().
| size_t pc_span::cap |
bytes writable at buf (0 whenever buf is nullptr)
Definition at line 67 of file span.h.
Referenced by pc_span_after(), pc_span_first(), pc_span_from(), pc_span_read(), pc_span_room(), and pc_ssh_server_dispatch().
| size_t pc_span::pos |
bytes the payload needs so far; keeps counting past cap on overflow
Definition at line 68 of file span.h.
Referenced by pc_span_from(), pc_span_len(), pc_span_produced(), pc_span_reset(), and pc_span_room().
| bool pc_span::overflow |
set once a write did not fit; pos then reports the size required
Definition at line 69 of file span.h.
Referenced by pc_span_from(), pc_span_ok(), and pc_span_reset().