using System; namespace OSHttpServer.Parser { /// /// Arguments used when more body bytes have come. /// public class BodyEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// buffer that contains the received bytes. /// offset in buffer where to start processing. /// number of bytes from that should be parsed. public BodyEventArgs(byte[] buffer, int offset, int count) { Buffer = buffer; Offset = offset; Count = count; } /// /// Initializes a new instance of the class. /// public BodyEventArgs() { } /// /// Gets or sets buffer that contains the received bytes. /// public byte[] Buffer { get; set; } /* /// /// Gets or sets number of bytes used by the request. /// public int BytesUsed { get; set; } */ /// /// Gets or sets number of bytes from that should be parsed. /// public int Count { get; set; } /* /// /// Gets or sets whether the body is complete. /// public bool IsBodyComplete { get; set; } */ /// /// Gets or sets offset in buffer where to start processing. /// public int Offset { get; set; } } }