Avoid redundant buffer copies for get_record
[yaz4j-moved-to-github.git] / src / main / native / zoom-extra.cpp
1 #include "zoom-extra.h"
2 #include <string.h>
3
4 struct CharStarByteArray ZOOM_record_get_bytes(ZOOM_record rec, const char *type)
5 {
6         struct CharStarByteArray node;
7         node.data = ZOOM_record_get(rec, type, &node.length);
8         return node;
9 }