Метод | Описание | |
---|---|---|
Flush ( ) : void |
Clears all buffers for this stream and causes any buffered data to be written to the underlying device. Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
|
Flush ( CancellationToken cancellationToken ) : void |
Clears all buffers for this stream and causes any buffered data to be written to the underlying device. Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
|
Pop3Stream ( Stream source, |
Initializes a new instance of the MailKit.Net.Pop3.Pop3Stream class. Creates a new Pop3Stream. |
|
Read ( byte buffer, int offset, int count ) : int |
Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. |
|
Read ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : int |
Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. |
|
Seek ( long offset, SeekOrigin origin ) : long |
Sets the position within the current stream.
|
|
SetLength ( long value ) : void |
Sets the length of the stream.
|
|
Write ( byte buffer, int offset, int count ) : void |
Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written. Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written. |
|
Write ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : void |
Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written. Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written. |
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the Pop3Stream and optionally releases the managed resources.
|
Метод | Описание | |
---|---|---|
CheckDisposed ( ) : void | ||
NeedInput ( byte inptr, int inputLeft ) : bool | ||
Poll ( SelectMode mode, CancellationToken cancellationToken ) : void | ||
ReadAhead ( CancellationToken cancellationToken ) : int | ||
ReadLine ( byte &buffer, int &offset, int &count, CancellationToken cancellationToken ) : bool |
Reads a single line of input from the stream. This method should be called in a loop until it returns |
|
ValidateArguments ( byte buffer, int offset, int count ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public Flush ( CancellationToken cancellationToken ) : void | ||
cancellationToken | CancellationToken | The cancellation token. |
Результат | void |
public Pop3Stream ( Stream source, |
||
source | Stream | The underlying network stream. |
socket | The underlying network socket. | |
protocolLogger | IProtocolLogger | The protocol logger. |
Результат | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | The buffer. |
offset | int | The buffer offset. |
count | int | The number of bytes to read. |
Результат | int |
public Read ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : int | ||
buffer | byte | The buffer. |
offset | int | The buffer offset. |
count | int | The number of bytes to read. |
cancellationToken | CancellationToken | The cancellation token. |
Результат | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | The offset into the stream relative to the |
origin | SeekOrigin | The origin to seek from. |
Результат | long |
public SetLength ( long value ) : void | ||
value | long | The desired length of the stream in bytes. |
Результат | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The buffer to write. |
offset | int | The offset of the first byte to write. |
count | int | The number of bytes to write. |
Результат | void |
public Write ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : void | ||
buffer | byte | The buffer to write. |
offset | int | The offset of the first byte to write. |
count | int | The number of bytes to write. |
cancellationToken | CancellationToken | The cancellation token. |
Результат | void |