Volksdata 1.0b7
RDF library
Loading...
Searching...
No Matches
buffer.c File Reference
#include "volksdata/buffer.h"
Include dependency graph for buffer.c:

Go to the source code of this file.

Functions

VOLK_BufferVOLK_buffer_new (const unsigned char *data, const size_t size)
 Create a new buffer and optionally populate it with data.
VOLK_rc VOLK_buffer_init (VOLK_Buffer *buf, const size_t size, const unsigned char *data)
 Initialize or reuse a buffer handle.
bool VOLK_buffer_eq (const VOLK_Buffer *buf1, const VOLK_Buffer *buf2)
 Return whether two buffers are equal.
int VOLK_buffer_cmp (const VOLK_Buffer *buf1, const VOLK_Buffer *buf2)
 Compare two buffers.
void VOLK_buffer_print (const VOLK_Buffer *buf)
 Print a byte string of a given length in a human-readable format.
char * VOLK_buffer_as_str (const VOLK_Buffer *buf)
 Format a buffer into anb ASCII string.
void VOLK_buffer_done (VOLK_Buffer *buf)
 Free the content of a buffer.
void VOLK_buffer_free (VOLK_Buffer *buf)
 Free a buffer.
VOLK_BufferTripleVOLK_btriple_new (VOLK_Buffer *s, VOLK_Buffer *p, VOLK_Buffer *o)
 Create a new buffer triple.
VOLK_rc VOLK_btriple_init (VOLK_BufferTriple *sspo, VOLK_Buffer *s, VOLK_Buffer *p, VOLK_Buffer *o)
 Initialize internal term pointers in a heap-allocated buffer triple.
void VOLK_btriple_done (VOLK_BufferTriple *sspo)
 Free the internal pointers of a buffer triple.
void VOLK_btriple_free (VOLK_BufferTriple *sspo)
 Free a buffer triple and all its internal pointers.
VOLK_Key VOLK_buffer_hash (const VOLK_Buffer *buf)
 Hash a buffer.
VOLK_Key VOLK_btriple_hash (const VOLK_BufferTriple *strp)
 Hash a buffer triple.
VOLK_BufferVOLK_btriple_pos (const VOLK_BufferTriple *trp, VOLK_TriplePos n)
 Get serialized triple by term position.

Variables

VOLK_BufferVOLK_default_ctx_buf = NULL
 Serialized default context.