return bin.toList();
}
@BIF
public static EString binary_to_list(EObject obj, EObject start, EObject stop) {
EBinary bin = obj.testBinary();
ESmall s = start.testSmall();
ESmall e = stop.testSmall();
if (bin == null || s==null || e==null)
throw ERT.badarg(obj,start,stop);
int idx0start = s.value-1;
int len = e.value-s.value+1;
if (idx0start < 0 || len < 0 || (idx0start + len) > bin.byteSize())
throw ERT.badarg(obj, start, stop);
return EString.make(bin, idx0start, len);
}