示例#1
0
 public static void WriteTypeLength(Enums.STUNAttribute type, ushort length, ref ByteBuffer buffer)
 {
     buffer.Put((ushort)type);
     buffer.Put(length);
 }
示例#2
0
 public static bool ReadTypeLength(ref ByteBuffer buffer, out Enums.STUNAttribute type, out ushort length)
 {
     type   = (Enums.STUNAttribute)buffer.GetUShort();
     length = buffer.GetUShort();
     return(length <= buffer.Remaining());
 }
示例#3
0
 public static void ReadTypeLength(ref ByteBuffer buffer, out Enums.STUNAttribute type, out ushort length)
 {
     type   = (Enums.STUNAttribute)buffer.GetUShort();
     length = buffer.GetUShort();
 }