/[Apache-SVN]
ViewVC logotype

Revision 1063596


Jump to revision: Previous Next
Author: brucem
Date: Wed Jan 26 03:44:18 2011 UTC (13 years, 2 months ago)
Changed paths: 11
Log Message:
AVRO-741. The avro_give* functions now all take in a custom free function that
will be called once the datum no longer needs access to the underlying
buffer.  This gives complete flexibility over wrapping external buffers
into Avro datum instances.  The avro_wrap* functions have been removed,
since this is now just a special case — just use NULL for the free
function.  To get the previous behavior of avro_give* (where the buffer
is freed using the custom allocator), use avro_alloc_free as the free
function.

In addition to updating the give functions, the binary encoding class
now ensures that any bytes value is NUL terminated in memory.  This
fixes the bug in AVRO-741, where we were getting a segfault when trying
to parse a schema JSON directly from a bytes value.

Changed paths

Path Details
Directoryavro/trunk/CHANGES.txt modified , text changed
Directoryavro/trunk/lang/c/jansson/src/Makefile.am modified , text changed
Directoryavro/trunk/lang/c/src/allocation.c modified , text changed
Directoryavro/trunk/lang/c/src/avro.h modified , text changed
Directoryavro/trunk/lang/c/src/datum.c modified , text changed
Directoryavro/trunk/lang/c/src/datum.h modified , text changed
Directoryavro/trunk/lang/c/src/datum_read.c modified , text changed
Directoryavro/trunk/lang/c/src/encoding_binary.c modified , text changed
Directoryavro/trunk/lang/c/src/schema.c modified , text changed
Directoryavro/trunk/lang/c/tests/generate_interop_data.c modified , text changed
Directoryavro/trunk/lang/c/tests/test_avro_data.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26