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

mapbox / protozero / 153 / 4
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: shadow
DEFAULT BRANCH: master
Ran 11 Jan 2016 09:11PM UTC
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

11 Jan 2016 08:57PM UTC coverage: 99.806%. First build
INSTALL_CXX=g++-4.9 COVERAGE=gcov-4.9

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.

515 of 516 relevant lines covered (99.81%)

2878.36 hits per line

Source Files on job 153.4 (INSTALL_CXX=g++-4.9 COVERAGE=gcov-4.9)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 153
  • Travis Job 153.4
  • 2ebbbcb8 on github
  • Next Job for INSTALL_CXX=g++-4.9 COVERAGE=gcov-4.9 on packed (#155.4)
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