Permalink
Browse files

Our arrays know their length

  • Loading branch information...
samstokes committed May 24, 2012
1 parent b0e17ea commit 70fc2b3f69a69bc0e6edb1cbb60ae5088cbf82e3
@@ -34,8 +34,8 @@ public void enablePreserveWhitespaces() {
jawbone.wbxml_conv_wbxml2xml_enable_preserve_whitespaces(conv);
}
- public void run(byte[] wbxml, long wbxmlLength, PointerByReference xmlPtr, LongByReference xmlLength) {
- jawbone.check(jawbone.wbxml_conv_wbxml2xml_run(conv, wbxml, wbxmlLength, xmlPtr, xmlLength));
+ public void run(byte[] wbxml, PointerByReference xmlPtr, LongByReference xmlLength) {
+ jawbone.check(jawbone.wbxml_conv_wbxml2xml_run(conv, wbxml, wbxml.length, xmlPtr, xmlLength));
}
@Override
@@ -43,7 +43,7 @@ public void testWbxmlToXml() throws Exception {
PointerByReference xmlPtr = new PointerByReference();
LongByReference xmlLength = new LongByReference();
- conv.run(wbxml, wbxml.length, xmlPtr, xmlLength);
+ conv.run(wbxml, xmlPtr, xmlLength);
assertTrue("returned no XML", xmlLength.getValue() > 0);

0 comments on commit 70fc2b3

Please sign in to comment.