LumiSoft Mail Server User API
ReadLineInternal Method (buffer, exceededAction, readedCount, log)
Namespaces > LumiSoft.Net.IO > StreamHelper > ReadLineInternal(Byte[](), SizeExceededAction, Int32, Boolean)
Reads line from source stream and stores to specified buffer. This method accepts LF or CRLF lines.
Syntax
C#Visual BasicManaged C++
public int ReadLineInternal (
	byte[] buffer,
	SizeExceededAction exceededAction,
	out int readedCount,
	bool log
)
Public Function ReadLineInternal ( _
	buffer As Byte(), _
	exceededAction As SizeExceededAction, _
	<OutAttribute> ByRef readedCount As Integer, _
	log As Boolean _
) As Integer
public:
int ReadLineInternal (
	array<unsigned char>^ buffer, 
	SizeExceededAction exceededAction, 
	int% readedCount, 
	bool log
)
Parameters
buffer (Byte[]())
Buffer where to store line data.
exceededAction (SizeExceededAction)
Specifies how this method behaves when maximum line size exceeded.
readedCount (Int32)
Returns how many bytes this method actually readed form source stream.
log (Boolean)
Specifies if read line is logged.
Return Value
Returns number of bytes stored to buffer, returns -1 if end of stream reached and no more data.
Exceptions
ExceptionCondition
InvalidOperationExceptionRaised when there already is pending read operation.
LineSizeExceededExceptionRaised when maximum allowed line size has exceeded.

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)