Click or drag to resize

NetDataReaderGetString(Int32) Method

Reads a String with a maximum character limit.

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public string GetString(
	int maxLength
)

Parameters

maxLength  Int32
The maximum allowed character count.

Return Value

String
The 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