9 size_serializer::operator bool()
const {
auto size() const -> size_t
Returns the number of bytes accumulated in the size counter during mock serialization.
auto read(void *data, size_t len) -> bool final
Read is not implemented for size serializer.
auto end_of_buffer() const -> bool final
Size serializer has no underlying buffer so this method always returns false.
void reset() final
Resets the size counter to zero.
void advance_cursor(size_t len) final
Increases the size counter by the given number of bytes.
auto write(const void *data, size_t len) -> bool final
Increases size counter by the given number of bytes.