VirtualBox

Changeset 14669 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 26, 2008 11:41:17 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp

    r14664 r14669  
    39633963
    39643964/**
    3965  *  Formats the given \a size value in bytes to a human readable string
    3966  *  in form of <tt>####[.##] B|KB|MB|GB|TB|PB</tt>.
    3967  *
    3968  *  The \a mode parameter is used for rounding the resulting number
    3969  *  after converting the \a size to KB, MB etc:
    3970  *  <ul>
    3971  *  <li>When \a mode is FormatSize_Round, the result is rounded to the
    3972  *      closest number containing \a decimal number of digits.
    3973  *  </li>
    3974  *  <li>When \a mode is FormatSize_RoundDown, the result is rounded to the
    3975  *      largest \a decimal number of digits that is not greater than the
    3976  *      result. This guarantees that converting the resulting string back
    3977  *      to the integer value in bytes will not produce a value greater that
    3978  *      the initial \a size parameter.
    3979  *  </li>
    3980  *  <li>When \a mode is FormatSize_RoundUp, the result is rounded to the
    3981  *      smallest \a decimal number of digits that is not less than the
    3982  *      result. This guarantees that converting the resulting string back
    3983  *      to the integer value in bytes will not produce a value less that
    3984  *      the initial \a size parameter.
    3985  *  </li>
    3986  *  </ul>
    3987  *
    3988  *  @param  aSize    size value in bytes
    3989  *  @param  aMode    convertion mode (FormatSize_Round, FormatSize_RoundDown,
    3990  *                                                      FormatSize_RoundUp)
    3991  *  @param  aDecimal the number of decimal digits in result
    3992  *  @return          human-readable size string
     3965 * Formats the given @a aSize value in bytes to a human readable string
     3966 * in form of <tt>####[.##] B|KB|MB|GB|TB|PB</tt>.
     3967 *
     3968 * The @a aMode and @a aDecimal parameters are used for rounding the resulting
     3969 * number when converting the size value to KB, MB, etc gives a fractional part:
     3970 * <ul>
     3971 * <li>When \a aMode is FormatSize_Round, the result is rounded to the
     3972 *     closest number containing \a aDecimal decimal digits.
     3973 * </li>
     3974 * <li>When \a aMode is FormatSize_RoundDown, the result is rounded to the
     3975 *     largest number with \a aDecimal decimal digits that is not greater than
     3976 *     the result. This guarantees that converting the resulting string back to
     3977 *     the integer value in bytes will not produce a value greater that the
     3978 *     initial size parameter.
     3979 * </li>
     3980 * <li>When \a aMode is FormatSize_RoundUp, the result is rounded to the
     3981 *     smallest number with \a aDecimal decimal digits that is not less than the
     3982 *     result. This guarantees that converting the resulting string back to the
     3983 *     integer value in bytes will not produce a value less that the initial
     3984 *     size parameter.
     3985 * </li>
     3986 * </ul>
     3987 *
     3988 * @param aSize     Size value in bytes.
     3989 * @param aMode     Conversion mode.
     3990 * @param aDecimal  Number of decimal digits in result.
     3991 * @return          Human-readable size string.
    39933992 */
    39943993/* static */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette