• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mapbox / protozero / 153
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: shadow
DEFAULT BRANCH: master
Ran 11 Jan 2016 09:11PM UTC
Jobs 1
Files 10
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
153

push

travis-ci

joto
New way to create repeated packed fields without using an iterator.

If we have the following:

    std::string data;
    protozero::pbf_writer pw(data);
    std::vector<int> v = { 1, 4, 9, 16, 25, 36 };

The "old" way using an iterator:

    pw.add_packed_int32(1, std::begin(v), std::end(v));

The "new" way without the iterator:

    {
        protozero::packed_field_int32 field{pw, 1};
        for (auto value : v) {
            field.add_element(value);
        }
    } // IMPORTANT! Destructor of packed_field_int32 is called
      // to finalize the repeated packed field.

Also adds pbf_writer::reserve() function.

22 of 22 new or added lines in 1 file covered. (100.0%)

515 of 516 relevant lines covered (99.81%)

2878.36 hits per line

Jobs
ID Job ID Ran Files Coverage
4 153.4 (INSTALL_CXX=g++-4.9 COVERAGE=gcov-4.9) 11 Jan 2016 09:11PM UTC 0
99.81
Travis Job 153.4
Source Files on build 153
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #153
  • 2ebbbcb8 on github
  • Next Build on packed (#155)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc