gr-habets/lib/ook_decode_b_impl.cc
std::vector<char> rtrim(const std::vector<char>& in)
    {
      std::vector<char> ret(in);
      size_t len = ret.size();
      while (len && !*ret.rbegin()) {
        ret.resize(--len);
      }
      return ret;
    }
// Trim off any trailing zeroes.
Trim off any trailing zeroes.
Trim off any trailing zeroes .
std::vector<char> rtrim(const std::vector<char>& in)
    {
      std::vector<char> ret(in);
      size_t len = ret.size();
      while (len && !*ret.rbegin()) {
        ret.resize(--len);
      }
      return ret;
    }
std :: vector < char > rtrim ( const std :: vector < char > & in ) { std :: vector < char > ret ( in ) ; size_t len = ret . size ( ) ; while ( len && ! * ret . rbegin ( ) ) { ret . resize ( -- len ) ; } return ret ; }
Trim off any trailing zeroes.
Trim off any trailing zeroes .