X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fwrbuf.h;h=eebb0159459bc0c2fea763a993ad7681b5532ce5;hp=12965380d2c23893687cc2d390d2a71a6a99eca8;hb=2bf750fa7a6e28d9ebb1fabd6325ecf4cfac7e49;hpb=89a547847448c1288ce39a0d5af1a1f18378e979 diff --git a/include/yaz/wrbuf.h b/include/yaz/wrbuf.h index 1296538..eebb015 100644 --- a/include/yaz/wrbuf.h +++ b/include/yaz/wrbuf.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data. + * Copyright (C) 1995-2012 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -63,13 +63,21 @@ YAZ_EXPORT void wrbuf_destroy(WRBUF b); */ YAZ_EXPORT void wrbuf_rewind(WRBUF b); -/** \brief append constant size buffer to WRBU +/** \brief append constant size buffer to WRBUF \param b WRBUF \param buf buffer \param size size of buffer */ YAZ_EXPORT void wrbuf_write(WRBUF b, const char *buf, size_t size); +/** \brief inserts buffer into WRBUF at some position + \param b WRBUF + \param pos position (0=beginning) + \param buf buffer + \param size size of buffer + */ +YAZ_EXPORT void wrbuf_insert(WRBUF b, size_t pos, const char *buf, size_t size); + /** \brief appends C-string to WRBUF \param b WRBUF \param buf C-string (0-terminated)