Skip to content

string_byte_at

CryoEagle edited this page Dec 26, 2018 · 10 revisions

string_byte_at

Returns the raw byte value as a real value at a given position in the given string.

Syntax:

string_byte_at(str, pos)
Argument Description
string str The string to check
int pos The position to get the byte from

Returns: int

Example:

int byte1 = string_byte_at("Hello, World!", 5);

This will set byte1 to the raw byte value of the sixth letter of "Hello World".

Back to strings

Clone this wiki locally