Show / Hide Table of Contents

    Class FtpCommandCollector

    Collects FTP commands using the current Encoding.

    Inheritance
    Object
    FtpCommandCollector
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.dll
    Syntax
    public sealed class FtpCommandCollector

    Constructors

    | Improve this Doc View Source

    FtpCommandCollector(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 Source

    Encoding

    Gets the currently active Encoding.

    Declaration
    public Encoding Encoding { get; }
    Property Value
    Type Description
    Encoding
    | Improve this Doc View Source

    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 Source

    Collect(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.

    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.