Avoid redundant buffer copies for get_record
[yaz4j-moved-to-github.git] / src / main / java / org / yaz4j / Record.java
index 3770132..2e99158 100644 (file)
@@ -23,8 +23,7 @@ public class Record implements Cloneable {
     }
 
     public byte[] get(String type) {
-        SWIGTYPE_p_int length = null;
-        return yaz4jlib.ZOOM_record_get_bytes(record, type, length);
+        return yaz4jlib.ZOOM_record_get_bytes(record, type);
     }
 
     public String render() {