in code/include/swoc/BufferWriter.h [603:609]
inline auto FixedBufferWriter::restrict(size_t n) -> self_type & {
if (n > _capacity) {
throw(std::invalid_argument{"FixedBufferWriter restrict value more than capacity"});
}
_capacity -= n;
return *this;
}