code: public static UnsafeMappedBuffer allocate(File file) {
      return allocate(file, MappedMemoryAllocator.DEFAULT_MAP_MODE, DEFAULT_INITIAL_CAPACITY, Long.MAX_VALUE);
    }
docs: Allocates a dynamic capacity mapped buffer in {@link java.nio.channels.FileChannel.MapMode#READ_WRITE} mode with an initial capacity
  of {@code 16MiB} and a maximum capacity of {@link Integer#MAX_VALUE}.
  <p>
  The resulting buffer will have a maximum capacity of {@link Integer#MAX_VALUE}. As bytes are written to the buffer
  its capacity will double in count each time the current capacity is reached. Memory will be mapped by opening and
  expanding the given {@link java.io.File} to the desired {@code capacity} and mapping the file contents into memory via
  {@link java.nio.channels.FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)}.
  
  @param file The file to map into memory.
  @return The mapped buffer.
  @throws NullPointerException If {@code file} is {@code null}
  
  @see UnsafeMappedBuffer#allocate(java.io.File, java.nio.channels.FileChannel.MapMode)
  @see UnsafeMappedBuffer#allocate(java.io.File, long)
  @see UnsafeMappedBuffer#allocate(java.io.File, java.nio.channels.FileChannel.MapMode, long)
  @see UnsafeMappedBuffer#allocate(java.io.File, long, long)
  @see UnsafeMappedBuffer#allocate(java.io.File, java.nio.channels.FileChannel.MapMode, long, long)