int depth = d.intValue();
if (depth < 0) depth=Integer.MAX_VALUE;
ESeq builder = ERT.NIL;
long bitCount = bin.bitSize();
if (bitCount > 8*(depth-1)) {
// Replace tail with ellipsis:
builder = builder.cons(EString.fromString("..."));
} else if (bitCount % 8 > 0) {
// Handle tail bits