Skip to main content

TE_STRU_BUFFER

#include <teagent_c.h>

A container for a block of data and the two lengths that describe it.

The C API uses this structure wherever a call has to distinguish the capacity the caller supplied from the amount actually written: size is what the buffer can hold, len is what is currently in it. On a call that returns data, supply buffer and size; the callee sets len. If size is too small the call fails with TE_INSUFFICIENT_BUFFER_SIZE.

© Pi Soft, 2018-2026 · Tricryption Engine 8.1

Public Attributes

TypeNameDescription
unsigned char *buffer
int32_tlen
int32_tsize