eina: add eina_{str,bin}buf_manage_read_only_new_length().
authorCedric BAIL <cedric.bail@samsung.com>
Thu, 2 Jan 2014 06:36:23 +0000 (15:36 +0900)
committerCedric BAIL <cedric.bail@samsung.com>
Mon, 20 Jan 2014 04:04:07 +0000 (13:04 +0900)
commit55a56fe5c06f9ecb4c0b28e1c1f7bf5828db2d64
treed4bad2280cbe0a743ac9e7d81597b6c161dcaeaf
parent342dd72e37dc2186f47357cc1102901ee903daaa
eina: add eina_{str,bin}buf_manage_read_only_new_length().

It is sometime useful to start from a defined buffer, but to not touch it
until needed. This make life of caller more easier as they don't need to
duplicate the buffer themself as Eina will now take care of that.
src/lib/eina/eina_binbuf.h
src/lib/eina/eina_binbuf_template_c.x
src/lib/eina/eina_strbuf.h
src/lib/eina/eina_strbuf_common.c
src/lib/eina/eina_strbuf_common.h
src/tests/eina/eina_test_binbuf.c