code: public static FileBytes allocate(File file, String mode, long size) {
      return new FileBytes(file, mode, Memory.Util.toPow2(size));
    }
docs: Allocates a randomAccessFile buffer.
  <p>
  If the underlying randomAccessFile is empty, the randomAccessFile count will expand dynamically as bytes are written to the randomAccessFile.
  
  @param file The randomAccessFile to allocate.
  @param mode The mode in which to open the underlying {@link java.io.RandomAccessFile}.
  @param size The count of the bytes to allocate.
  @return The allocated buffer.