[subset] add NODISCARD to error checking methods on serializer.
This commit is contained in:
parent
3827a3eb56
commit
46bf03d691
|
@ -133,9 +133,9 @@ struct hb_serialize_context_t
|
||||||
|
|
||||||
bool successful () const { return !bool (errors); }
|
bool successful () const { return !bool (errors); }
|
||||||
|
|
||||||
bool ran_out_of_room () const { return errors & HB_SERIALIZE_ERROR_OUT_OF_ROOM; }
|
HB_NODISCARD bool ran_out_of_room () const { return errors & HB_SERIALIZE_ERROR_OUT_OF_ROOM; }
|
||||||
bool offset_overflow () const { return errors & HB_SERIALIZE_ERROR_OFFSET_OVERFLOW; }
|
HB_NODISCARD bool offset_overflow () const { return errors & HB_SERIALIZE_ERROR_OFFSET_OVERFLOW; }
|
||||||
bool only_offset_overflow () const { return errors == HB_SERIALIZE_ERROR_OFFSET_OVERFLOW; }
|
HB_NODISCARD bool only_offset_overflow () const { return errors == HB_SERIALIZE_ERROR_OFFSET_OVERFLOW; }
|
||||||
|
|
||||||
void reset (void *start_, unsigned int size)
|
void reset (void *start_, unsigned int size)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue