|
|
@ -39,12 +39,13 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Aligns the current position forward to a 16-byte boundary, padding with zeros. Jumps forward
|
|
|
|
* Aligns the current position forward to a 16-byte boundary, padding with zeros.
|
|
|
|
* by 16-bytes at a minimum.
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void AlignWithPadding() {
|
|
|
|
void AlignWithPadding() {
|
|
|
|
|
|
|
|
if (index & 3) {
|
|
|
|
Skip(4 - (index & 3), true);
|
|
|
|
Skip(4 - (index & 3), true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unsigned GetCurrentOffset() const {
|
|
|
|
unsigned GetCurrentOffset() const {
|
|
|
|
return static_cast<unsigned>(index);
|
|
|
|
return static_cast<unsigned>(index);
|
|
|
|