IBinaryDataConverter.cs 748 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperWebSocket
  6. {
  7. /// <summary>
  8. /// The converter interface for converting binary data to text message
  9. /// </summary>
  10. public interface IBinaryDataConverter
  11. {
  12. /// <summary>
  13. /// Returns a <see cref="System.String" /> that represents this instance.
  14. /// </summary>
  15. /// <param name="data">The data.</param>
  16. /// <param name="offset">The offset.</param>
  17. /// <param name="length">The length.</param>
  18. /// <returns>
  19. /// A <see cref="System.String" /> that represents this instance.
  20. /// </returns>
  21. string ToString(byte[] data, int offset, int length);
  22. }
  23. }