BinaryStreamBaseTryReadBytes Method
Attempts to read a byte array from the stream with a specified maximum length.
Namespace: SnapDB.IOAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public bool TryReadBytes(
int maxLength,
out byte[]?? value
)
Public Function TryReadBytes (
maxLength As Integer,
<OutAttribute> ByRef value As Byte()
) As Boolean
public:
bool TryReadBytes(
int maxLength,
[OutAttribute] array<unsigned char>^% value
)
function TryReadBytes(maxLength, value);
- maxLength Int32
- The maximum allowed length for the byte array to be read.
- value Byte
- When this method returns, contains the byte array read from the stream, if successful; otherwise, null.
Booleantrue If a byte array is successfully read within the specified maximum length; otherwise,
false.