String.appendLen
glib.string_.String appendLen(string val, ptrdiff_t len)Appends len bytes of val to string.
If len is positive, val may contain embedded nuls and need not be nul-terminated. It is the caller's responsibility to ensure that val has at least len addressable bytes.
If len is negative, val must be nul-terminated and len is considered to request the entire string length. This makes [glib.string_.String.appendLen] equivalent to [glib.string_.String.append].
Parameters
val | bytes to append |
len | number of bytes of val to use, or -1 for all of val |
Returns
string