NetDataReaderGetString(Int32) Method |
Reads a
String with a maximum character limit.
Namespace: LiteNetLib.UtilsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic string GetString(
int maxLength
)
Parameters
- maxLength Int32
- The maximum allowed character count.
Return Value
StringThe deserialized
String, or
Empty if the character count exceeds
maxLength.
Remarks
Note that
maxLength limits the number of characters, not the total size in
Bytes.
See Also