/usr/share/doc/libbson-doc/html/endianness.html is in libbson-doc 1.9.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="canonical" href="http://mongoc.org/libbson/current/endianness.html"/>
<title>Endianness — libbson 1.9.2</title>
<link rel="stylesheet" href="_static/mongoc.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '1.9.2',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: false,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Threading" href="threading.html" />
<link rel="prev" title="Cross Platform Notes" href="cross-platform-notes.html" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
</head>
<body>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper" id="endianness">
<div class="body" role="main">
<div class="related">
<ul>
<li class="nav-item nav-item-0"><a href="index.html">libbson 1.9.2</a> »</li>
<li class="nav-item nav-item-1"><a href="cross-platform-notes.html">Cross Platform Notes</a></li>
</ul>
</div>
<div class="section" id="endianness">
<h1>Endianness<a class="headerlink" href="#endianness" title="Permalink to this headline">ΒΆ</a></h1>
<p>The BSON specification dictates that the encoding format is in little-endian. Many implementations simply ignore endianness altogether and expect that they are to be run on little-endian. Libbson supports both Big and Little Endian systems. This means we use <code class="docutils literal"><span class="pre">memcpy()</span></code> when appropriate instead of dereferencing and properly convert to and from the host endian format. We expect the compiler intrinsics to optimize it to a dereference when possible.</p>
</div>
</div>
<div class="footer">
<div class="footer-nav">
<a class="footer-nav-button footer-nav-button-prev" title="Cross Platform Notes" href="cross-platform-notes.html">« Previous: Cross Platform Notes</a>
<a class="footer-nav-button footer-nav-button-next" title="Threading" href="threading.html">Next: Threading »</a>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper"><h3><a href="index.html">libbson 1.9.2</a></h3>
<ul>
<li class="toctree-l1"><a class="reference internal" href="installing.html">Installing libbson</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="tutorial.html">Tutorial</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="guides.html">Guides</a></li>
</ul>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="cross-platform-notes.html">Cross Platform Notes</a><ul class="current">
<li class="toctree-l2 current"><a class="current reference internal" href="#">Endianness</a></li>
<li class="toctree-l2"><a class="reference internal" href="threading.html">Threading</a></li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="api.html">API Reference</a></li>
</ul>
<ul>
<li class="toctree-l1 ">
<a href="full_index.html">Index</a>
</li>
</ul>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="colophon">
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.6, based on <a href="https://sphinx-readable-theme.readthedocs.io/en/latest/">Sphinx Readable Theme</a>.
</div>
</body>
</html>
|