BodyEventArgs.cs 612 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace OSHttpServer.Parser
  3. {
  4. /// <summary>
  5. /// Arguments used when body bytes have come.
  6. /// </summary>
  7. public class BodyEventArgs : EventArgs
  8. {
  9. /// <summary>
  10. /// Gets or sets buffer that contains the received bytes.
  11. /// </summary>
  12. public byte[] Buffer;
  13. /// <summary>
  14. /// number of bytes from <see cref="Offset"/> that should be parsed.
  15. /// </summary>
  16. public int Count;
  17. /// <summary>
  18. /// offset in buffer where to start processing.
  19. /// </summary>
  20. public int Offset;
  21. }
  22. }