MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria User Interface Library Interface > a) Functions > laString_CreateFromBuffer Function
MPLAB® Harmony Graphics Suite
laString_CreateFromBuffer Function
C
LIB_EXPORT laString laString_CreateFromBuffer(
    const GFXU_CHAR* chr, 
    GFXU_FontAsset* fnt
);
Parameters
Parameters 
Description 
const GFXU_CHAR* chr 
pointer to a GFXU_CHAR buffer, can be NULL 
GFXU_FontAsset* fnt 
pointer to a font asset, can be NULL 
Returns

laString - created string object

Remarks

Makes an internal copy of the input buffer for the string object. Caller is responsible for the allocated memory but does not need to preserve the input buffer to maintain the string buffer state. 

Caller must also ensure that the font contains all the glyphs for the string or rendering may not be possible.

MPLAB® Harmony Graphics Suite