src.ctf.*: add `ctf::src::NullCpFinder`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 10 May 2024 20:12:52 +0000 (16:12 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commitcd34c1643b882fafbee70f9600a884351eb55486
tree19ca09636fc6716ecc78b4e46956bcae9b6df22c
parente3dc1a7a45954244fdd6096757bfd23c87c9f516
src.ctf.*: add `ctf::src::NullCpFinder`

An instance of this new class keeps a temporary code unit of length
`CodeUnitLenV` bytes to help finder a null codepoint (U+0000) in
contiguous buffers (especially when the encoded codepoint spans more
than one buffer).

See the comment of the new class to learn more.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I80feb4402cc0256d7c48c357ca23e355c4322ce0
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12707
src/Makefile.am
src/plugins/ctf/common/src/null-cp-finder.hpp [new file with mode: 0644]
This page took 0.024518 seconds and 4 git commands to generate.