re19.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>&lt;%GLibFormatSizeFlags&gt;: </title>
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
  7. <link rel="home" href="index.html" title="">
  8. <link rel="up" href="ch01.html" title="GLib">
  9. <link rel="prev" href="re18.html" title="&lt;%GLibFileTest&gt;">
  10. <link rel="next" href="re20.html" title="&lt;GHashTable&gt;">
  11. <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
  12. <link rel="stylesheet" href="style.css" type="text/css">
  13. </head>
  14. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  15. <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
  16. <td width="100%" align="left" class="shortcuts"></td>
  17. <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
  18. <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
  19. <td><a accesskey="p" href="re18.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
  20. <td><a accesskey="n" href="re20.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
  21. </tr></table>
  22. <div class="refentry">
  23. <a name="id-1.1.20"></a><div class="titlepage"></div>
  24. <div class="refnamediv">
  25. <h2>&lt;%GLibFormatSizeFlags&gt;</h2>
  26. <p>&lt;%GLibFormatSizeFlags&gt;</p>
  27. </div>
  28. <div class="refsect1">
  29. <a name="id-1.1.20.2"></a><h2>Description</h2>
  30. <p>Flags to modify the format of the string returned by <code class="function">g_format_size_full()</code>.</p>
  31. </div>
  32. <div class="refsect1">
  33. <a name="id-1.1.20.3"></a><h2>Members</h2>
  34. <div class="refsect2">
  35. <a name="id-1.1.20.3.2"></a><h3>default</h3>
  36. <p class="remark"><em><span class="remark">alias <code class="code">G_FORMAT_SIZE_DEFAULT</code></span></em></p>
  37. <p>behave the same as <code class="function">g_format_size()</code></p>
  38. </div>
  39. <div class="refsect2">
  40. <a name="id-1.1.20.3.3"></a><h3>long-format</h3>
  41. <p class="remark"><em><span class="remark">alias <code class="code">G_FORMAT_SIZE_LONG_FORMAT</code></span></em></p>
  42. <p>include the exact number of bytes as part
  43. of the returned string. For example, "45.6 kB (45,612 bytes)".</p>
  44. </div>
  45. <div class="refsect2">
  46. <a name="id-1.1.20.3.4"></a><h3>iec-units</h3>
  47. <p class="remark"><em><span class="remark">alias <code class="code">G_FORMAT_SIZE_IEC_UNITS</code></span></em></p>
  48. <p>use IEC (base 1024) units with "KiB"-style
  49. suffixes. IEC units should only be used for reporting things with
  50. a strong "power of 2" basis, like RAM sizes or RAID stripe sizes.
  51. Network and storage sizes should be reported in the normal SI units.</p>
  52. </div>
  53. <div class="refsect2">
  54. <a name="id-1.1.20.3.5"></a><h3>bits</h3>
  55. <p class="remark"><em><span class="remark">alias <code class="code">G_FORMAT_SIZE_BITS</code></span></em></p>
  56. <p>set the size as a quantity in bits, rather than
  57. bytes, and return units in bits. For example, ‘Mb’ rather than ‘MB’.</p>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="footer">
  62. <hr>Generated by GTK-Doc V1.33.1</div>
  63. </body>
  64. </html>