You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
432 B

  1. #if !NET20
  2. using System;
  3. using System.Collections.Generic;
  4. namespace Apewer.WebSocket
  5. {
  6. internal class ReadState
  7. {
  8. public ReadState()
  9. {
  10. Data = new List<byte>();
  11. }
  12. public List<byte> Data { get; private set; }
  13. public FrameType? FrameType { get; set; }
  14. public void Clear()
  15. {
  16. Data.Clear();
  17. FrameType = null;
  18. }
  19. }
  20. }
  21. #endif