Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-cxx latest

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.Language documentation]] std::size_t decode_value(char* begin, std::size_t size) noexcept;

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 ␛.

Parameters
Esc

Type to search.

Reference previewOpen reference