ZXC 1.0.3
High-performance asymmetric lossless compression library
Loading...
Searching...
No Matches
zxc_scan_src_s Struct Reference

Data Fields

int(* read_at )(const struct zxc_scan_src_s *src, uint64_t off, void *dst, size_t len)
 Reads len bytes at off; NULL reads from data.
const uint8_t * data
 Container bytes when read_at is NULL.
void * ctx
 Opaque state for read_at.
uint64_t size
 Container size in bytes.

Detailed Description

Definition at line 2282 of file zxc_internal.h.

Field Documentation

◆ ctx

void* zxc_scan_src_s::ctx

Opaque state for read_at.

Definition at line 2287 of file zxc_internal.h.

◆ data

const uint8_t* zxc_scan_src_s::data

Container bytes when read_at is NULL.

Definition at line 2286 of file zxc_internal.h.

Referenced by zxc_scan_src_mem().

◆ read_at

int(* zxc_scan_src_s::read_at) (const struct zxc_scan_src_s *src, uint64_t off, void *dst, size_t len)

Reads len bytes at off; NULL reads from data.

Returns ZXC_OK or a negative zxc_error_t. Bounds are checked first.

Definition at line 2285 of file zxc_internal.h.

◆ size

uint64_t zxc_scan_src_s::size

Container size in bytes.

Definition at line 2288 of file zxc_internal.h.

Referenced by zxc_scan_src_mem().


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