UselessStunAttributeValue.cs 334 B

12345678910111213141516171819
  1. using System;
  2. namespace STUN.Messages.StunAttributeValues;
  3. /// <summary>
  4. /// 无法理解的属性
  5. /// </summary>
  6. public class UselessStunAttributeValue : IStunAttributeValue
  7. {
  8. public int WriteTo(Span<byte> buffer)
  9. {
  10. throw new NotSupportedException();
  11. }
  12. public bool TryParse(ReadOnlySpan<byte> buffer)
  13. {
  14. return true;
  15. }
  16. }