API: add ZBarcode_Reset() to clear and restore zint_symbol to

its default state
library: fix dealing with ZINT_WARN_HRT_TRUNCATED in `error_tag()`
  when `WARN_FAIL_ALL` set
This commit is contained in:
gitlost 2023-11-24 18:04:33 +00:00
parent 0601b580b2
commit dfc4049932
8 changed files with 215 additions and 20 deletions

View file

@ -3171,7 +3171,9 @@ encoded.</p>
<p>If printing more than one barcode, the <code>zint_symbol</code>
structure may be re-used by calling the <code>ZBarcode_Clear()</code>
function after each barcode to free any output buffers allocated. The
<code>zint_symbol</code> input members must be reset.</p>
<code>zint_symbol</code> input members must be reset. To fully restore
<code>zint_symbol</code> to its default state, call
<code>ZBarcode_Reset()</code> instead.</p>
<h2 id="buffering-symbols-in-memory-raster">5.4 Buffering Symbols in
Memory (raster)</h2>
<p>In addition to saving barcode images to file Zint allows you to

View file

@ -1747,7 +1747,8 @@ are assumed to be UTF-8 encoded.
If printing more than one barcode, the `zint_symbol` structure may be re-used by
calling the `ZBarcode_Clear()` function after each barcode to free any output
buffers allocated. The `zint_symbol` input members must be reset.
buffers allocated. The `zint_symbol` input members must be reset. To fully
restore `zint_symbol` to its default state, call `ZBarcode_Reset()` instead.
## 5.4 Buffering Symbols in Memory (raster)

View file

@ -1780,7 +1780,8 @@ be UTF-8 encoded.
If printing more than one barcode, the zint_symbol structure may be re-used by
calling the ZBarcode_Clear() function after each barcode to free any output
buffers allocated. The zint_symbol input members must be reset.
buffers allocated. The zint_symbol input members must be reset. To fully restore
zint_symbol to its default state, call ZBarcode_Reset() instead.
5.4 Buffering Symbols in Memory (raster)