Read until count bytes are read, an exception is thrown, or the connection is closed.
Public Function ReadToCount( _
ByVal () As Byte, _
ByVal As Integer, _
ByVal As Integer _
) As Data
Dim instance As TcpBase
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Data
value = instance.ReadToCount(buffer, offset, count)
public Data ReadToCount(
byte[] ,
int ,
int
)
public: Data* ReadToCount(
byte[]* ,
int ,
int
)
public:
Data^ ReadToCount(
array<byte>^ ,
int ,
int
)
Parameters
- buffer
- The byte array used to store the received data.
- offset
- The position in the buffer to store the data.
- count
- The number of byte to read.
Return Value
A
Data object encapsulating the received data.