int maxMemorySize = dataStore.getMinRecordLength() - 1;
if (size < maxMemorySize) {
writeSmallBinary(out, val, state, i);
} else {
out.writeInt(BINARY_IN_DATA_STORE);
val.store(dataStore);
out.writeUTF(val.toString());
}
break;
}
// special handling required for binary value: