Class FtpCommandCollector
Collects FTP commands using the current Encoding.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.dll
Syntax
public sealed class FtpCommandCollector
Constructors
| Improve this Doc View SourceFtpCommandCollector(Func<Encoding>)
Initializes a new instance of the FtpCommandCollector class.
Declaration
public FtpCommandCollector(Func<Encoding> getActiveEncodingFunc)
Parameters
Type | Name | Description |
---|---|---|
Func<Encoding> | getActiveEncodingFunc | The delegate to get the current encoding for. |
Properties
| Improve this Doc View SourceEncoding
Gets the currently active Encoding.
Declaration
public Encoding Encoding { get; }
Property Value
Type | Description |
---|---|
Encoding |
IsEmpty
Gets a value indicating whether this collector contains unused data.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceCollect(ReadOnlySpan<Byte>)
Collects the data from the buffer
and tries to build FtpCommand objects from it.
Declaration
public IEnumerable<FtpCommand> Collect(ReadOnlySpan<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<Byte> | buffer | The buffer to collect the data from. |
Returns
Type | Description |
---|---|
IEnumerable<FtpCommand> | The found FtpCommands. |