R=mtklein@google.com
TBR=reed
NOTRY=true
NOTREECHECKS=true
BUG=skia:
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/
256453007
git-svn-id: http://skia.googlecode.com/svn/trunk@14359
2bbb7eff-a529-9590-31e7-
b0007b416f81
///////////////////////////////////////////////////////////////////////////////
template <typename T> const T* skip(SkReader32* reader, size_t count = 1) {
- SkASSERT(count >= 0);
size_t size = sizeof(T) * count;
SkASSERT(SkAlign4(size) == size);
return reinterpret_cast<const T*>(reader->skip(size));
}
template <typename T> const T* skipAlign(SkReader32* reader, size_t count = 1) {
- SkASSERT(count >= 0);
size_t size = SkAlign4(sizeof(T) * count);
return reinterpret_cast<const T*>(reader->skip(size));
}