al_ustr_size_utf16(3)
β¨ NAME β¨
al_ustr_size_utf16 β Allegro 5 API
This page lives in the Library Functions Manual, and it's all about al_ustr_size_utf16(3) from the Allegro 5 API, bestie π¦
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
size_t al_ustr_size_utf16(const ALLEGRO_USTR *us)
π¦ DESCRIPTION π¦
okay so this one is lowkey a size-checker: al_ustr_size_utf16 returns the number of bytes required to encode the string in UTF-16, and yes, that count includes the terminating 0. β¨
It's usually called before al_ustr_encode_utf16(3) to determine the size of the buffer to allocate. That's the whole vibe: check the size first, then allocate, slay π
π SEE ALSO π
Brought to you by the Allegro reference manual β source/version energy β and the date on this page is literally not stamped, so we're not inventing one, bestie π«Άπ
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms