List<ByteBuffer> buf = new ArrayList<ByteBuffer>();
if (!iolist_arg.collectIOList(buf)) {
throw ERT.badarg(context, iolist_arg);
}
JavaObject jo;
if ((jo = context.testJavaObject()) != null && (jo.realObject() instanceof MessageDigest)) {
MessageDigest md = (MessageDigest) jo.realObject();
for (int i = 0; i < buf.size(); i++) {
md.update(buf.get(i));
}
return new JavaObject(self, md);
}
throw ERT.badarg(context, iolist_arg);
}