diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 15:18:34 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 15:18:34 +0100 |
commit | 8104af61d21dc48fc163ca5c1124a9e4c5911fdc (patch) | |
tree | 827a001be50ed42bf4113b795ad31c2ae6d84bc5 | |
parent | 2618f4c486848c5e3b080eb77a0c0c143932240e (diff) |
serialize: fix num_bytes_read in binary reader
-rw-r--r-- | serialize/binary-reader.inl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/serialize/binary-reader.inl b/serialize/binary-reader.inl index 9e27f1a0..587b9cd6 100644 --- a/serialize/binary-reader.inl +++ b/serialize/binary-reader.inl @@ -80,6 +80,7 @@ constexpr auto binary_reader<It>::read_asciiz_string() noexcept(false) if (c == '\0') { ret.len = i; + num_bytes_read += i+1; return ret; } } |