BinaryStreamBaseTryReadString Method

Attempts to read a byte array from the stream with a specified maximum length.

Definition

Namespace: SnapDB.IO
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public bool TryReadString(
	int maxLength,
	out string?? value
)

Parameters

maxLength  Int32
The maximum allowed length for the byte array to be read.
value  String
When this method returns, contains the byte array read from the stream, if successful; otherwise, null.

Return Value

Boolean
true if a byte array is successfully read within the specified maximum length; otherwise, false.

See Also