TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.86.4
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Since 2.58
Creates a new reference counted string and copies the contents of str into it, up to len bytes.
str
len
Since this function does not stop at nul bytes, it is the caller's responsibility to ensure that str has at least len addressable bytes.
a string
length of str to use, or -1 if str is nul-terminated
the newly created reference counted string
2.58
Creates a new reference counted string and copies the contents of
strinto it, up tolenbytes.Since this function does not stop at nul bytes, it is the caller's responsibility to ensure that
strhas at leastlenaddressable bytes.