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