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

mosra / magnum / 943 / 1
45%
master: 20%

Build:
Build:
LAST BUILD BRANCH: culling-math
DEFAULT BRANCH: master
Ran 15 Aug 2017 10:08PM UTC
Files 325
Run time 21s
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

15 Aug 2017 08:56PM UTC coverage: 77.622% (+0.03%) from 77.591%
TARGET=desktop

push

travis-ci

mosra
Buffer: deprecate templated overloads of data(), subData() and map().

They were utterly confusing, as it was completely unclear what the units
of offset/size parameters are, whether byte sizes or element counts (and
moreover, some of these APIs had offset in bytes and size in count and
some not). All of those are deprecated now, with hinting the user to
convert to non-templated APIs in combination with
Containers::arrayCast(). Moreover, the non-templated range map()
function doesn't return just void* anymore, but a properly sized
ArrayView<char>. The old map() (which doesn't take range) still returns
void*, as getting size there is non-trivial (and impossible on
ES/WebGL). The switch to ArrayView might be a source breaking change,
but I silently hope that everyone was just using the templated functions
anyway (that are deprecated now). So, in short, this was before:

   T* a = buf.map<T>(0, size_in_what_i_have_no_idea);

And this is now, with proper size safety and clear API:

   ArrayView<T> a = Containers::arrayCast<T>(buf.map(0, size_in_bytes);

The deprecated APIs will be removed at some point in the future, as
usual.

5720 of 7369 relevant lines covered (77.62%)

438021.3 hits per line

Source Files on job 943.1 (TARGET=desktop)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 943
  • Travis Job 943.1
  • bdac075b on github
  • Prev Job for TARGET=desktop on next (#928.1)
  • Next Job for TARGET=desktop on next (#946.1)
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