decode_value
Undo that escaping, in place.
Source and package
- Qualified name
-
libtmux::decode _value - Namespace
- libtmux
- Package
- libtmux-cxx
- Source
- include/libtmux/snapshot.hpp
- [[
C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] std::size decode_value(char* begin, std::_t size size) noexcept;_t -
Description#
Escaping only ever lengthens, so the decoded bytes fit where the encoded ones were: the write cursor never overtakes the read cursor, nothing moves, and nothing is allocated. Answers the decoded length.
An escape marker followed by anything else is left as written. Output this library asked for contains no such sequence, and failing on one would mean a recording could not carry a literal
␛.