blob: 4e46a78a9ca5b925262302ccabe2d3934302ccf3 [file]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Paimon-cpp: paimon::Bytes Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Paimon-cpp
</div>
<div id="projectbrief">A high-performance C++ implementation of Apache Paimon</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacepaimon.html">paimon</a></li><li class="navelem"><a class="el" href="classpaimon_1_1_bytes.html">Bytes</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classpaimon_1_1_bytes-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">paimon::Bytes Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>A memory-managed byte array class that provides efficient storage and manipulation of binary data.
<a href="classpaimon_1_1_bytes.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="bytes_8h_source.html">/home/runner/work/paimon-cpp/paimon-cpp/include/paimon/memory/bytes.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af31cb27c438a4e59d9aee9e4d9761e27" id="r_af31cb27c438a4e59d9aee9e4d9761e27"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#af31cb27c438a4e59d9aee9e4d9761e27">Bytes</a> ()=<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">default</a></td></tr>
<tr class="memdesc:af31cb27c438a4e59d9aee9e4d9761e27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor creating an empty <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object. <br /></td></tr>
<tr class="separator:af31cb27c438a4e59d9aee9e4d9761e27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a145a3eaebffb74d156e3d9f553f762f9" id="r_a145a3eaebffb74d156e3d9f553f762f9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a145a3eaebffb74d156e3d9f553f762f9">Bytes</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a> <a class="el" href="classpaimon_1_1_bytes.html#a0c808c1893967e523481bbe19bda6347">size</a>, <a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *pool)</td></tr>
<tr class="memdesc:a145a3eaebffb74d156e3d9f553f762f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor that allocates memory of specified size. <br /></td></tr>
<tr class="separator:a145a3eaebffb74d156e3d9f553f762f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a151a522ee8b4b24113182cbd4e4b8315" id="r_a151a522ee8b4b24113182cbd4e4b8315"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a151a522ee8b4b24113182cbd4e4b8315">Bytes</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> std::string &amp;str, <a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *pool)</td></tr>
<tr class="memdesc:a151a522ee8b4b24113182cbd4e4b8315"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor that creates a copy of a string. <br /></td></tr>
<tr class="separator:a151a522ee8b4b24113182cbd4e4b8315"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a246f6db5220806ec66b898210eb986c2" id="r_a246f6db5220806ec66b898210eb986c2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a246f6db5220806ec66b898210eb986c2">Bytes</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;)=<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">delete</a></td></tr>
<tr class="separator:a246f6db5220806ec66b898210eb986c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4acb59bfd93d52d1fe275161d42b536" id="r_aa4acb59bfd93d52d1fe275161d42b536"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#aa4acb59bfd93d52d1fe275161d42b536">operator=</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;)=<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">delete</a></td></tr>
<tr class="separator:aa4acb59bfd93d52d1fe275161d42b536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5572560920a30a12b7e3654376309988" id="r_a5572560920a30a12b7e3654376309988"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a5572560920a30a12b7e3654376309988">Bytes</a> (<a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&amp;) <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">noexcept</a></td></tr>
<tr class="separator:a5572560920a30a12b7e3654376309988"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a132b19b29dff61ee2d8c84ea88f4360a" id="r_a132b19b29dff61ee2d8c84ea88f4360a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a132b19b29dff61ee2d8c84ea88f4360a">operator=</a> (<a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&amp;) <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">noexcept</a></td></tr>
<tr class="separator:a132b19b29dff61ee2d8c84ea88f4360a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4178495fb2cf73f21a8fd39266ec86c" id="r_ad4178495fb2cf73f21a8fd39266ec86c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#ad4178495fb2cf73f21a8fd39266ec86c">~Bytes</a> ()</td></tr>
<tr class="separator:ad4178495fb2cf73f21a8fd39266ec86c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affc08878c8ff37b0476f8e8b60eb49bb" id="r_affc08878c8ff37b0476f8e8b60eb49bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#affc08878c8ff37b0476f8e8b60eb49bb">operator==</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>) <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a></td></tr>
<tr class="separator:affc08878c8ff37b0476f8e8b60eb49bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3046290142f31faa72aea060cbc5d49" id="r_ab3046290142f31faa72aea060cbc5d49"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#ab3046290142f31faa72aea060cbc5d49">operator&lt;</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>) <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a></td></tr>
<tr class="separator:ab3046290142f31faa72aea060cbc5d49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e767f140b6b38f268d6d900fd884ab4" id="r_a9e767f140b6b38f268d6d900fd884ab4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">char</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a9e767f140b6b38f268d6d900fd884ab4">operator[]</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a> <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">idx</a>) <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a></td></tr>
<tr class="separator:a9e767f140b6b38f268d6d900fd884ab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6db1a89480677662811766afc1e61e0e" id="r_a6db1a89480677662811766afc1e61e0e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a6db1a89480677662811766afc1e61e0e">compare</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>) <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a></td></tr>
<tr class="memdesc:a6db1a89480677662811766afc1e61e0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare this <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object with another. <br /></td></tr>
<tr class="separator:a6db1a89480677662811766afc1e61e0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16740bcc9dbaefee3a2f829ec05be475" id="r_a16740bcc9dbaefee3a2f829ec05be475"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">char</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a16740bcc9dbaefee3a2f829ec05be475">data</a> () <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a></td></tr>
<tr class="memdesc:a16740bcc9dbaefee3a2f829ec05be475"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get pointer to the raw data. <br /></td></tr>
<tr class="separator:a16740bcc9dbaefee3a2f829ec05be475"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c808c1893967e523481bbe19bda6347" id="r_a0c808c1893967e523481bbe19bda6347"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a0c808c1893967e523481bbe19bda6347">size</a> () <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a></td></tr>
<tr class="memdesc:a0c808c1893967e523481bbe19bda6347"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the size of the byte array. <br /></td></tr>
<tr class="separator:a0c808c1893967e523481bbe19bda6347"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a04a7ebac1b00a2cf9c3436e4a8194909" id="r_a04a7ebac1b00a2cf9c3436e4a8194909"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">static</a> <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> std::shared_ptr&lt; <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a04a7ebac1b00a2cf9c3436e4a8194909">EmptyBytes</a> ()</td></tr>
<tr class="separator:a04a7ebac1b00a2cf9c3436e4a8194909"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0b0e80ce8bd911427d85b2479f734cb" id="r_ae0b0e80ce8bd911427d85b2479f734cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">static</a> <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_UNIQUE_PTR</a>&lt; <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#ae0b0e80ce8bd911427d85b2479f734cb">CopyOf</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">bytes</a>, <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a> <a class="el" href="classpaimon_1_1_bytes.html#a0c808c1893967e523481bbe19bda6347">size</a>, <a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *pool)</td></tr>
<tr class="memdesc:ae0b0e80ce8bd911427d85b2479f734cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a copy of existing <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> with specified size. <br /></td></tr>
<tr class="separator:ae0b0e80ce8bd911427d85b2479f734cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ffe7a792a70e2797964eb9ffcb4dfab" id="r_a3ffe7a792a70e2797964eb9ffcb4dfab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">static</a> <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_UNIQUE_PTR</a>&lt; <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a3ffe7a792a70e2797964eb9ffcb4dfab">AllocateBytes</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">int32_t</a> length, <a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *pool)</td></tr>
<tr class="memdesc:a3ffe7a792a70e2797964eb9ffcb4dfab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a new <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object with specified length. <br /></td></tr>
<tr class="separator:a3ffe7a792a70e2797964eb9ffcb4dfab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0292ba33e9432638cf961cd02e20684a" id="r_a0292ba33e9432638cf961cd02e20684a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">static</a> <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_UNIQUE_PTR</a>&lt; <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a0292ba33e9432638cf961cd02e20684a">AllocateBytes</a> (<a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> std::string &amp;str, <a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *pool)</td></tr>
<tr class="memdesc:a0292ba33e9432638cf961cd02e20684a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a new <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object from string data. <br /></td></tr>
<tr class="separator:a0292ba33e9432638cf961cd02e20684a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ac968a8098133115f20c31fcc462cba37" id="r_ac968a8098133115f20c31fcc462cba37"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#ac968a8098133115f20c31fcc462cba37">pool_</a> = <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">nullptr</a></td></tr>
<tr class="separator:ac968a8098133115f20c31fcc462cba37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ae963aa9cb7699175799ab554bab2f0" id="r_a2ae963aa9cb7699175799ab554bab2f0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">char</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a2ae963aa9cb7699175799ab554bab2f0">data_</a> = <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">nullptr</a></td></tr>
<tr class="separator:a2ae963aa9cb7699175799ab554bab2f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40d56199a9a9f0a0b30da568afbaa95d" id="r_a40d56199a9a9f0a0b30da568afbaa95d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpaimon_1_1_bytes.html#a40d56199a9a9f0a0b30da568afbaa95d">size_</a> = 0</td></tr>
<tr class="separator:a40d56199a9a9f0a0b30da568afbaa95d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A memory-managed byte array class that provides efficient storage and manipulation of binary data. </p>
<p><a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> is a RAII wrapper around raw memory that integrates with Paimon's memory pool system for efficient memory allocation and deallocation. It provides safe access to byte arrays with automatic memory management and supports move semantics for efficient transfers. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="af31cb27c438a4e59d9aee9e4d9761e27" name="af31cb27c438a4e59d9aee9e4d9761e27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af31cb27c438a4e59d9aee9e4d9761e27">&#9670;&#160;</a></span>Bytes() <span class="overload">[1/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">paimon::Bytes::Bytes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Default constructor creating an empty <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object. </p>
<p>Creates a <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object with no allocated memory. The object will have null data pointer and zero size. </p>
</div>
</div>
<a id="a145a3eaebffb74d156e3d9f553f762f9" name="a145a3eaebffb74d156e3d9f553f762f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a145a3eaebffb74d156e3d9f553f762f9">&#9670;&#160;</a></span>Bytes() <span class="overload">[2/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">paimon::Bytes::Bytes </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a>&#160;</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *&#160;</td>
<td class="paramname"><em>pool</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor that allocates memory of specified size. </p>
<p>Allocates a new byte array of the given size using the provided memory pool. The allocated memory is uninitialized.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">size</td><td>Number of bytes to allocate. </td></tr>
<tr><td class="paramname">pool</td><td>Memory pool to use for allocation. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a151a522ee8b4b24113182cbd4e4b8315" name="a151a522ee8b4b24113182cbd4e4b8315"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a151a522ee8b4b24113182cbd4e4b8315">&#9670;&#160;</a></span>Bytes() <span class="overload">[3/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">paimon::Bytes::Bytes </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> std::string &amp;&#160;</td>
<td class="paramname"><em>str</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *&#160;</td>
<td class="paramname"><em>pool</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor that creates a copy of a string. </p>
<p>Allocates memory and copies the contents of the provided string into the new <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">str</td><td>String to copy data from. </td></tr>
<tr><td class="paramname">pool</td><td>Memory pool to use for allocation. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a246f6db5220806ec66b898210eb986c2" name="a246f6db5220806ec66b898210eb986c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a246f6db5220806ec66b898210eb986c2">&#9670;&#160;</a></span>Bytes() <span class="overload">[4/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">paimon::Bytes::Bytes </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a5572560920a30a12b7e3654376309988" name="a5572560920a30a12b7e3654376309988"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5572560920a30a12b7e3654376309988">&#9670;&#160;</a></span>Bytes() <span class="overload">[5/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">paimon::Bytes::Bytes </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ad4178495fb2cf73f21a8fd39266ec86c" name="ad4178495fb2cf73f21a8fd39266ec86c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4178495fb2cf73f21a8fd39266ec86c">&#9670;&#160;</a></span>~Bytes()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">paimon::Bytes::~Bytes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a04a7ebac1b00a2cf9c3436e4a8194909" name="a04a7ebac1b00a2cf9c3436e4a8194909"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04a7ebac1b00a2cf9c3436e4a8194909">&#9670;&#160;</a></span>EmptyBytes()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">static</a> <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> std::shared_ptr&lt; <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &gt; &amp; paimon::Bytes::EmptyBytes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ae0b0e80ce8bd911427d85b2479f734cb" name="ae0b0e80ce8bd911427d85b2479f734cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0b0e80ce8bd911427d85b2479f734cb">&#9670;&#160;</a></span>CopyOf()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">static</a> <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_UNIQUE_PTR</a>&lt; <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &gt; paimon::Bytes::CopyOf </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&#160;</td>
<td class="paramname"><em>bytes</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a>&#160;</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *&#160;</td>
<td class="paramname"><em>pool</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a copy of existing <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> with specified size. </p>
<p>Creates a new <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object by copying data from an existing <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object. The copy will have the specified size, which may be different from the source object's size (truncation or padding may occur).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bytes</td><td>Source <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object to copy from. </td></tr>
<tr><td class="paramname">size</td><td>Size of the new <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object. </td></tr>
<tr><td class="paramname">pool</td><td>Memory pool to use for allocation. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Unique pointer to the newly created <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object. </dd></dl>
</div>
</div>
<a id="a3ffe7a792a70e2797964eb9ffcb4dfab" name="a3ffe7a792a70e2797964eb9ffcb4dfab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ffe7a792a70e2797964eb9ffcb4dfab">&#9670;&#160;</a></span>AllocateBytes() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">static</a> <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_UNIQUE_PTR</a>&lt; <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &gt; paimon::Bytes::AllocateBytes </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">int32_t</a>&#160;</td>
<td class="paramname"><em>length</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *&#160;</td>
<td class="paramname"><em>pool</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Allocate a new <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object with specified length. </p>
<p>Factory method that creates a new <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object with uninitialized memory of the specified length.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">length</td><td>Number of bytes to allocate. </td></tr>
<tr><td class="paramname">pool</td><td>Memory pool to use for allocation. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Unique pointer to the newly allocated <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object. </dd></dl>
</div>
</div>
<a id="a0292ba33e9432638cf961cd02e20684a" name="a0292ba33e9432638cf961cd02e20684a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0292ba33e9432638cf961cd02e20684a">&#9670;&#160;</a></span>AllocateBytes() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">static</a> <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_UNIQUE_PTR</a>&lt; <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &gt; paimon::Bytes::AllocateBytes </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> std::string &amp;&#160;</td>
<td class="paramname"><em>str</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a> *&#160;</td>
<td class="paramname"><em>pool</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Allocate a new <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object from string data. </p>
<p>Factory method that creates a new <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object and copies the contents of the provided string into it.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">str</td><td>String to copy data from. </td></tr>
<tr><td class="paramname">pool</td><td>Memory pool to use for allocation. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Unique pointer to the newly allocated <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object. </dd></dl>
</div>
</div>
<a id="aa4acb59bfd93d52d1fe275161d42b536" name="aa4acb59bfd93d52d1fe275161d42b536"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4acb59bfd93d52d1fe275161d42b536">&#9670;&#160;</a></span>operator=() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">void</a> paimon::Bytes::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a132b19b29dff61ee2d8c84ea88f4360a" name="a132b19b29dff61ee2d8c84ea88f4360a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a132b19b29dff61ee2d8c84ea88f4360a">&#9670;&#160;</a></span>operator=() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp; paimon::Bytes::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="affc08878c8ff37b0476f8e8b60eb49bb" name="affc08878c8ff37b0476f8e8b60eb49bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affc08878c8ff37b0476f8e8b60eb49bb">&#9670;&#160;</a></span>operator==()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">bool</a> paimon::Bytes::operator== </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ab3046290142f31faa72aea060cbc5d49" name="ab3046290142f31faa72aea060cbc5d49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3046290142f31faa72aea060cbc5d49">&#9670;&#160;</a></span>operator&lt;()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">bool</a> paimon::Bytes::operator&lt; </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a9e767f140b6b38f268d6d900fd884ab4" name="a9e767f140b6b38f268d6d900fd884ab4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e767f140b6b38f268d6d900fd884ab4">&#9670;&#160;</a></span>operator[]()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">char</a> &amp; paimon::Bytes::operator[] </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a>&#160;</td>
<td class="paramname"><em>idx</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a6db1a89480677662811766afc1e61e0e" name="a6db1a89480677662811766afc1e61e0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6db1a89480677662811766afc1e61e0e">&#9670;&#160;</a></span>compare()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">int32_t</a> paimon::Bytes::compare </td>
<td>(</td>
<td class="paramtype"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">const</a> <a class="el" href="classpaimon_1_1_bytes.html">Bytes</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Compare this <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object with another. </p>
<dl class="section return"><dt>Returns</dt><dd>Negative value if this &lt; other; 0 if equal; positive value if this &gt; other. </dd></dl>
</div>
</div>
<a id="a16740bcc9dbaefee3a2f829ec05be475" name="a16740bcc9dbaefee3a2f829ec05be475"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16740bcc9dbaefee3a2f829ec05be475">&#9670;&#160;</a></span>data()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">char</a> * paimon::Bytes::data </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get pointer to the raw data. </p>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the underlying byte array. The pointer remains valid as long as the <a class="el" href="classpaimon_1_1_bytes.html" title="A memory-managed byte array class that provides efficient storage and manipulation of binary data.">Bytes</a> object exists and is not moved from. </dd></dl>
</div>
</div>
<a id="a0c808c1893967e523481bbe19bda6347" name="a0c808c1893967e523481bbe19bda6347"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c808c1893967e523481bbe19bda6347">&#9670;&#160;</a></span>size()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a> paimon::Bytes::size </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the size of the byte array. </p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ac968a8098133115f20c31fcc462cba37" name="ac968a8098133115f20c31fcc462cba37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac968a8098133115f20c31fcc462cba37">&#9670;&#160;</a></span>pool_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classpaimon_1_1_memory_pool.html">MemoryPool</a>* paimon::Bytes::pool_ = <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">nullptr</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a2ae963aa9cb7699175799ab554bab2f0" name="a2ae963aa9cb7699175799ab554bab2f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ae963aa9cb7699175799ab554bab2f0">&#9670;&#160;</a></span>data_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">char</a>* paimon::Bytes::data_ = <a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">nullptr</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a40d56199a9a9f0a0b30da568afbaa95d" name="a40d56199a9a9f0a0b30da568afbaa95d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40d56199a9a9f0a0b30da568afbaa95d">&#9670;&#160;</a></span>size_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">size_t</a> paimon::Bytes::size_ = 0</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/runner/work/paimon-cpp/paimon-cpp/include/paimon/memory/<a class="el" href="bytes_8h_source.html">bytes.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>