Difference between revisions of "LlIntegerToBase64"

From Second Life Wiki
Jump to navigation Jump to search
m (Category sort order corrected)
Line 4: Line 4:
|func_footnote
|func_footnote
|func_desc
|func_desc
|return_text=that is a {{LSLG|Base64}} big endian encode of '''number'''
|return_text=that is a {{LSLGC|Base64}} big endian encode of '''number'''
|spec
|spec
|caveats
|caveats
|constants
|constants
|examples
|examples=<lsl>string ASCII7ToString(integer letter)
{
    if(letter >= 0x80 || letter < 0) return "";//Not valid ascii7 character
    return llBase64ToString(llIntegerToBase64(letter << 24));
}</lsl>
If you are looking for full Unicode translation, not just ASCII7 see: [[Combined_Library#Unicode_Integer_to_UTF8]]
|helpers
|helpers
|also_functions=*{{LSLG|llBase64ToInteger}}
|also_functions=
{{LSL DefineRow||[[llBase64ToInteger]]}}
{{LSL DefineRow||[[llBase64ToString]]}}
{{LSL DefineRow||[[llStringToBase64]]}}
|also_events
|also_events
|also_tests
|also_tests
|also_articles
|also_articles
|notes=Only the first 6 of the 8 characters returned are needed to decoded it back into an interer.
|notes=Only the first 6 of the 8 characters returned are needed to decoded it back into an integer.
|permission
|cat1=Base64
|negative_index|cat1=Base64
|cat2=Encoding
|cat2=Encoding
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 12:25, 20 May 2008