Searched refs:protozero_assert (Results 1 – 5 of 5) sorted by relevance
87 protozero_assert(tag() != 0 && "call next() before accessing field value"); in packed_fixed()89 protozero_assert(len % sizeof(T) == 0); in packed_fixed()101 …protozero_assert((has_wire_type(pbf_wire_type::varint) || has_wire_type(pbf_wire_type::length_deli… in get_svarint()130 protozero_assert(tag() != 0 && "call next() before accessing field value"); in get_packed()286 protozero_assert(((m_tag > 0 && m_tag < 19000) || in next()456 protozero_assert(tag() != 0 && "call next() before calling skip()"); in skip()471 … protozero_assert(false && "can not be here because next() should have thrown already"); in skip()488 protozero_assert(tag() != 0 && "call next() before accessing field value"); in get_bool()489 protozero_assert(has_wire_type(pbf_wire_type::varint) && "not a varint"); in get_bool()490 protozero_assert((*m_data & 0x80) == 0 && "not a 1 byte varint"); in get_bool()[all …]
73 …protozero_assert(m_pos == 0 && "you can't add fields to a parent pbf_writer if there is an existin… in add_varint()74 protozero_assert(m_data); in add_varint()79 …protozero_assert(((tag > 0 && tag < 19000) || (tag > 19999 && tag <= ((1 << 29) - 1))) && "tag out… in add_field()91 …protozero_assert(m_pos == 0 && "you can't add fields to a parent pbf_writer if there is an existin… in add_fixed()92 protozero_assert(m_data); in add_fixed()168 protozero_assert(m_pos == 0); in open_submessage()169 protozero_assert(m_data); in open_submessage()183 protozero_assert(m_pos != 0); in rollback_submessage()184 protozero_assert(m_rollback_pos != size_is_known); in rollback_submessage()185 protozero_assert(m_data); in rollback_submessage()[all …]
44 #ifndef protozero_assert45 # define protozero_assert(x) assert(x) macro
153 protozero_assert(m_data); in to_string()163 protozero_assert(m_data); in operator std::string()
103 protozero_assert(!empty()); in front()113 protozero_assert(!empty()); in drop_front()