AVRO Primitive Type Serialization
[Avro C API]


Functions

avro_status_t avro_null (void)
avro_status_t avro_int64 (AVRO *avro, int64_t *lp)
avro_status_t avro_string (AVRO *avro, char **str, int64_t maxlen)
avro_status_t avro_bytes (AVRO *avro, char **bytes, int64_t *len, int64_t maxlen)
avro_status_t avro_bool (AVRO *avro, bool_t *bp)
avro_status_t avro_float (AVRO *avro, float *fp)
avro_status_t avro_double (AVRO *avro, double *dp)

Function Documentation

avro_status_t avro_bool ( AVRO avro,
bool_t *  bp 
)

avro_bool() is called to read/write a boolean value

Parameters:
avro The Avro handle
bp Pointer to the boolean pointer
Returns:
The Avro status

avro_status_t avro_bytes ( AVRO avro,
char **  bytes,
int64_t *  len,
int64_t  maxlen 
)

avro_bytes() is called to read/write opaque bytes

Parameters:
avro The Avro handle
bytes The pointer to the bytes to read/write
len Pointer to an integer which either (1) expresses the number of bytes you wish to encode or (2) is set on return to give the number of bytes decoded
maxlen The maximum number of bytes to read/write
Returns:
The Avro status

avro_status_t avro_double ( AVRO avro,
double *  dp 
)

avro_double() is called to read/write a double

Parameters:
avro The Avro handle
dp Pointer to the double
Returns:
The Avro status

avro_status_t avro_float ( AVRO avro,
float *  fp 
)

avro_float() is called to read/write a float

Parameters:
avro The Avro handle
fp Pointer to the float
Returns:
The Avro status

avro_status_t avro_int64 ( AVRO avro,
int64_t *  lp 
)

avro_int64() is called to read/write a 64-bit signed integer

Parameters:
avro The Avro handle
lp Pointer to the 64-bit integer
Returns:
The Avro status

avro_status_t avro_null ( void   ) 

avro_null() will not read or write any data

avro_status_t avro_string ( AVRO avro,
char **  str,
int64_t  maxlen 
)

avro_string() is called to read/write a string

Parameters:
avro The Avro handle
str Pointer to the string
maxlen The maximum length of the string to read/write
Returns:
The Avro status


Generated on Fri Oct 9 14:12:58 2009 for AVRO C API by  doxygen 1.5.8