predsync C ABI 0.1.0
C bindings for deterministic low-bandwidth state sync
Loading...
Searching...
No Matches
PredsyncValue Struct Reference

One value crossing the C boundary. More...

#include <predsync.h>

Public Attributes

PredsyncValueKind kind
 Which representation is present.
PredsyncScalarKind element
 The scalar or list-element type.
uint64_t scalar
 Slot bits for a scalar value.
const void * ptr
 Borrowed bytes for strings, or slot bits for lists.
uintptr_t len
 Byte count for strings, element count for lists.
uintptr_t cap
 Caller-provided capacity in bytes.

Detailed Description

One value crossing the C boundary.

Member Data Documentation

◆ cap

uintptr_t PredsyncValue::cap

Caller-provided capacity in bytes.

◆ element

PredsyncScalarKind PredsyncValue::element

The scalar or list-element type.

◆ kind

PredsyncValueKind PredsyncValue::kind

Which representation is present.

◆ len

uintptr_t PredsyncValue::len

Byte count for strings, element count for lists.

◆ ptr

const void* PredsyncValue::ptr

Borrowed bytes for strings, or slot bits for lists.

◆ scalar

uint64_t PredsyncValue::scalar

Slot bits for a scalar value.


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