Function __global->file_size_to_tar_block_size

Definitions

sources/tar.php

  • Return the output from the conversion between filesize and TAR block size.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$size integer No No required parameter N/A N/A The file size of a file that would be inside the TAR archive

Returns

  • The block size TAR would use to store this file
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Return the output from the conversion between filesize and TAR block size.
 *
 * @param  integer $size The file size of a file that would be inside the TAR archive
 * @return integer The block size TAR would use to store this file
 */

function file_size_to_tar_block_size(int $size) : int