string llStringToBase64( string str );
Forced delay: 0.0 seconds. Energy: 10.0.
If extra bits are needed to complete the last base64 symbol, those extra bits will be zero.
To go in the other direction, use llBase64ToString.
Returns a string Base64 representation of the str interpreted as an UTF-8 byte sequence
integer getStringBytes(string msg) {
return (llStringLength((string)llParseString2List(llStringToBase64(msg), ["="], [])) * 3) >> 2;
}