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

mosra / magnum / 943
45%
master: 20%

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

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

Jobs
ID Job ID Ran Files Coverage
1 943.1 (TARGET=desktop) 15 Aug 2017 10:08PM UTC 0
77.62
Travis Job 943.1
Source Files on build 943
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #943
  • bdac075b on github
  • Prev Build on next (#928)
  • Next Build on next (#946)
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