ByteBuffer newSlab() {
    return direct ? ByteBuffer.allocateDirect(slabSize) : ByteBuffer.allocate(slabSize);
  }
Returns the slab that the next value should be written to.
planetiler-core/src/main/java/com/onthegomap/planetiler/collection/AppendStoreRam.java