Beispiel #1
0
 public override void DecodeId(sul.Utils.Buffer _buffer)
 {
     //_buffer.ReadVaruint();
 }
Beispiel #2
0
 protected override void DecodeImpl(sul.Utils.Buffer _buffer)
 {
     //_buffer.ReadVaruint()
 }
Beispiel #3
0
 public override void EncodeId(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(Id);
 }
Beispiel #4
0
 protected override void DecodeImpl(sul.Utils.Buffer _buffer)
 {
     //_buffer.ReadString()
     //_buffer.ReadString()
 }
Beispiel #5
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(thresold);
 }
Beispiel #6
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(uuid)); _buffer.WriteString(uuid);
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(username)); _buffer.WriteString(username);
 }
Beispiel #7
0
 protected override void DecodeImpl(sul.Utils.Buffer _buffer)
 {
     //sharedSecret.DecodeBody(_buffer);
     //verifyToken.DecodeBody(_buffer);
 }
Beispiel #8
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(sharedSecret.Length); _buffer.WriteBytes(sharedSecret);
     _buffer.WriteVaruint(verifyToken.Length); _buffer.WriteBytes(verifyToken);
 }
Beispiel #9
0
 protected override void DecodeImpl(sul.Utils.Buffer _buffer)
 {
     //_buffer.ReadString()
     //publicKey.DecodeBody(_buffer);
     //verifyToken.DecodeBody(_buffer);
 }
Beispiel #10
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(serverId)); _buffer.WriteString(serverId);
     _buffer.WriteVaruint(publicKey.Length); _buffer.WriteBytes(publicKey);
     _buffer.WriteVaruint(verifyToken.Length); _buffer.WriteBytes(verifyToken);
 }