public byte[] array() {
    return this.array;
  }
Helper class that wraps a byte[] so that it can expand and be reused. Users should call
resizeIfNecessary to make sure the buffer has suitable capacity, and then use the array as
needed.

<p>Resizing policies: Expanding: If the required size > current capacity * 1.5, expand to the
required size, otherwise expand to current capacity * 1.5. Shrinking: If initial size < the
required size < current capacity * 0.6, and such small requests last for more than 5 times,
shrink to the middle of the required size and current capacity.
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/AutoResizingBuffer.java