<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12816">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bitvec: Add bitvec_tailroom_bits() function<br><br>This is similar to msgb_tailroom(): It returns the amount of space<br>left at the end of the bit vector (compared to the current cursor).<br><br>The function returns the number of bits left in the bitvec.<br><br>Change-Id: I8980a6b6d1973b67a2d9ad411c878d956fb428d1<br>---<br>M include/osmocom/core/bitvec.h<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/16/12816/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/bitvec.h b/include/osmocom/core/bitvec.h</span><br><span>index da2d4e4..a404c2f 100644</span><br><span>--- a/include/osmocom/core/bitvec.h</span><br><span>+++ b/include/osmocom/core/bitvec.h</span><br><span>@@ -93,4 +93,10 @@</span><br><span>     return bytes;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/*! Return the tailroom in number of unused bits remaining in the bit-vector */</span><br><span style="color: hsl(120, 100%, 40%);">+static inline unsigned int bitvec_tailroom_bits(const sturct bitvec *bv)</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+  return bv->data_len*8 - bv->cur_bit;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /*! @} */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12816">change 12816</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12816"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I8980a6b6d1973b67a2d9ad411c878d956fb428d1 </div>
<div style="display:none"> Gerrit-Change-Number: 12816 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>