2.4.3.2 Reading — Zix 0.4.2 documentation

# 2.4.3.2 Reading

Functions that may only be called by the read thread.

uint32_t zix_ring_read_space(const ZixRing *ring)

  Return the number of bytes available for reading.

uint32_t zix_ring_peek(ZixRing *ring, void *dst, uint32_t size)

  Read from the ring without advancing the read head.

uint32_t zix_ring_read(ZixRing *ring, void *dst, uint32_t size)

  Read from the ring and advance the read head.

uint32_t zix_ring_skip(ZixRing *ring, uint32_t size)

  Advance the read head, ignoring any data.