Implement byte[][] packing on Proxy.packObject
@@ -116,6 +116,12 @@ public abstract class Proxy {
} else if (obj instanceof TypedObj) {
TypedObj to = (TypedObj) obj;
to.writeTo(packer);
+ } else if (obj instanceof byte[][]) {
+ byte[][] bytesArray = (byte[][]) obj;
+ packer.packArrayHeader(bytesArray.length);
+ for (byte[] bytes : bytesArray) {
+ packByteArray(bytes, packer);
+ }
} else {
throw new IOException("not yet supported: " + obj.getClass());
}
