public int bufferSize() {
    return sharedBuffer == null ? 0 : sharedBuffer.length;
  }
@return amount of buffer space currently allocated
storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java