byte[] res = new byte[len];
for (int i = 0; i < len; i++)
res[i] = getU8ArrayElem(arrptr, i);
+ bindings.free_buffer(arrptr);
return res;
}
public static short[] decodeUint16Array(long arrptr) {
short[] res = new short[len];
for (int i = 0; i < len; i++)
res[i] = getU16ArrayElem(arrptr, i);
+ bindings.free_buffer(arrptr);
return res;
}
public static long[] decodeUint64Array(long arrptr) {
long[] res = new long[len];
for (int i = 0; i < len; i++)
res[i] = getU64ArrayElem(arrptr, i);
+ bindings.free_buffer(arrptr);
return res;
}
}