@Override
  public long size() {
    return size;
  }
Returns the current size of entity to which this channel is connected.

<p>
This method violates the contract of {@link SeekableByteChannel#size} as it will not throw any exception when
invoked on a closed channel. Instead it will return the size the channel had when close has been called.
</p>
planetiler-core/src/main/java/com/onthegomap/planetiler/util/SeekableInMemoryByteChannel.java