librdf_statement_encode

Name

librdf_statement_encode --  Serialise a statement into a buffer

Synopsis

size_t librdf_statement_encode (librdf_statement* statement, unsigned char * buffer, size_t length);

Arguments

statement

the statement to serialise

buffer

the buffer to use

length

buffer size

Description

Encodes the given statement in the buffer, which must be of sufficient size. If buffer is NULL, no work is done but the size of buffer required is returned.

Return value

the number of bytes written or 0 on failure.