Garry's Mod Wiki

Revision Difference

net.ReadString#546016

<function name="ReadString" parent="net" type="libraryfunc"> <description> Reads a null terminated string from the net stream. The size of the string is 8 bits plus 8 bits for every ASCII character in the string. <warning>You **must** read information in same order as you write it.</warning> Reads a [null-terminated string](https://en.wikipedia.org/wiki/Null-terminated_string) from the net stream. The size of the string is 8 bits plus 8 bits for every ASCII character in the string. ⤶ <warning>You **must** read information in same order as you write it.</warning> </description> <realm>Shared</realm> <rets> <ret name="" type="string">The read string, or a string with 0 length if no string could be read.</ret> <ret name="" type="string">The read string, or a string with `0` length if no string could be read.</ret> </rets> </function>