Lines Matching refs:m_top
59 s16 m_top; /**< Top offset of stored data */ member
103 return pMbuf_->m_top; in nnnetOslMbuf_leadingspace()
108 return pMbuf_->m_capacity - (pMbuf_->m_top + pMbuf_->m_len); in nnnetOslMbuf_trailingspace()
113 if (pMbuf_->m_top >= len) in nnnetOslMbuf_prepend()
115 pMbuf_->m_top -= len; in nnnetOslMbuf_prepend()
128 return &(pMbuf_->m_data[pMbuf_->m_top]); in nnnetOslMbuf_tod()
144 if (pMbuf_->m_top + pMbuf_->m_len + len > pMbuf_->m_capacity) in nnnetOslMbuf_expand()
156 NN_TASSERT_(pMbuf_->m_len == 0 && pMbuf_->m_top + len <= pMbuf_->m_capacity); in nnnetOslMbuf_reserve()
157 pMbuf_->m_top += len; in nnnetOslMbuf_reserve()
294 m_top = top; in SetTop()
299 NN_TASSERT_(m_top < m_capacity); in GetWritableLength()
300 return m_capacity - m_top; in GetWritableLength()
305 return m_top; in GetTop()
310 return m_top; in GetLeadingSpace()
315 return m_capacity - (m_top + m_len); in GetTrailingSpace()
320 NN_TASSERT_(m_top + offset < m_capacity);
321 return &m_data[m_top + offset];
326 NN_TASSERT_(m_top + offset < m_capacity);
327 return &m_data[m_top + offset];