public void adjustBasedOnDefault(GrowingByteBuffer buffer, EDataType eType, int size) { if (size > AVERAGE_PRIMITIVE_LIST_SIZE) { buffer.ensureExtraCapacity(getPrimitiveSize(eType) * (size - AVERAGE_PRIMITIVE_LIST_SIZE)); } }
public void adjustBasedOnDefault(GrowingByteBuffer buffer, EClass eClass, int size) { if (size > AVERAGE_REFERENCE_LIST_SIZE) { buffer.ensureExtraCapacity(10 * (size - AVERAGE_REFERENCE_LIST_SIZE)); } }