1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title><%GLibFormatSizeFlags>: </title>
- <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
- <link rel="home" href="index.html" title="">
- <link rel="up" href="ch01.html" title="GLib">
- <link rel="prev" href="re18.html" title="<%GLibFileTest>">
- <link rel="next" href="re20.html" title="<GHashTable>">
- <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
- <link rel="stylesheet" href="style.css" type="text/css">
- </head>
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
- <td width="100%" align="left" class="shortcuts"></td>
- <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
- <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
- <td><a accesskey="p" href="re18.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
- <td><a accesskey="n" href="re20.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
- </tr></table>
- <div class="refentry">
- <a name="id-1.1.20"></a><div class="titlepage"></div>
- <div class="refnamediv">
- <h2><%GLibFormatSizeFlags></h2>
- <p><%GLibFormatSizeFlags></p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.20.2"></a><h2>Description</h2>
- <p>Flags to modify the format of the string returned by <code class="function">g_format_size_full()</code>.</p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.20.3"></a><h2>Members</h2>
- <div class="refsect2">
- <a name="id-1.1.20.3.2"></a><h3>default</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_FORMAT_SIZE_DEFAULT</code></span></em></p>
- <p>behave the same as <code class="function">g_format_size()</code></p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.20.3.3"></a><h3>long-format</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_FORMAT_SIZE_LONG_FORMAT</code></span></em></p>
- <p>include the exact number of bytes as part
- of the returned string. For example, "45.6 kB (45,612 bytes)".</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.20.3.4"></a><h3>iec-units</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_FORMAT_SIZE_IEC_UNITS</code></span></em></p>
- <p>use IEC (base 1024) units with "KiB"-style
- suffixes. IEC units should only be used for reporting things with
- a strong "power of 2" basis, like RAM sizes or RAID stripe sizes.
- Network and storage sizes should be reported in the normal SI units.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.20.3.5"></a><h3>bits</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_FORMAT_SIZE_BITS</code></span></em></p>
- <p>set the size as a quantity in bits, rather than
- bytes, and return units in bits. For example, ‘Mb’ rather than ‘MB’.</p>
- </div>
- </div>
- </div>
- <div class="footer">
- <hr>Generated by GTK-Doc V1.33.1</div>
- </body>
- </html>
|