Returns the number of bytes in a string.


GML Code Example

string_byte_length( str );

Argument Description
str The string to measure the number of bytes of.

Returns: Real


This function returns the number of bytes in a string, but you should note that due to their being held as UTF8, this will not be equal to their string length.


GML Code Example

bytesize = string_byte_length("Hello World");

This would set bytesize to the number of bytes in "Hello World".

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here