protected override void SerializeProtectedPayload(EndianWriter writer)
        {
            writer.WriteUInt16BEPrefixed(UserHash);
            writer.WriteUInt16BEPrefixed(Authorization);

            writer.WriteBE(SequenceNumber);
            writer.WriteBE(SequenceBegin);
            writer.WriteBE(SequenceEnd);
        }
Exemplo n.º 2
0
 public override void Serialize(EndianWriter writer)
 {
     writer.WriteBE(TextSessionId);
     writer.WriteBE(TextBufferVersion);
     writer.WriteBE((ushort)Result);
     writer.WriteUInt16BEPrefixed(Text);
 }
Exemplo n.º 3
0
        public void TestUInt16BEPrefixedString()
        {
            _writer.WriteUInt16BEPrefixed("ABCXYZ");

            Assert.Equal <byte[]>(new byte[] { 0x00, 0x06, 0x41, 0x42, 0x43, 0x58, 0x59, 0x5A, 0x00 },
                                  _writer.ToBytes());
        }
Exemplo n.º 4
0
 public override void Serialize(EndianWriter writer)
 {
     writer.WriteBE(TextSessionId);
     writer.WriteBE(BaseVersion);
     writer.WriteBE(SubmittedVersion);
     writer.WriteBE(TotalTextBytelength);
     writer.WriteBE(SelectionStart);
     writer.WriteBE(SelectionLength);
     writer.WriteBE(Flags);
     writer.WriteBE(TextChunkByteStart);
     writer.WriteUInt16BEPrefixed(TextChunk);
     // writer.Write(Delta);
 }
Exemplo n.º 5
0
        public override void Serialize(EndianWriter writer)
        {
            writer.WriteBE((ushort)DeviceType);
            writer.WriteBE(NativeWidth);
            writer.WriteBE(NativeHeight);
            writer.WriteBE(DpiX);
            writer.WriteBE(DpiY);

            writer.WriteBE((long)DeviceCapabilities);

            writer.WriteBE(ClientVersion);
            writer.WriteBE(OsMajorVersion);
            writer.WriteBE(OsMinorVersion);

            writer.WriteUInt16BEPrefixed(DisplayName);
        }
 protected override void SerializePayload(EndianWriter writer)
 {
     writer.WriteUInt16BEPrefixed(LiveId);
 }
Exemplo n.º 7
0
 public void Serialize(EndianWriter writer)
 {
     writer.WriteBE(Offset);
     writer.WriteBE(DeleteCount);
     writer.WriteUInt16BEPrefixed(InsertContent);
 }
Exemplo n.º 8
0
 public override void Serialize(EndianWriter writer)
 {
     writer.WriteBE((ushort)Location);
     writer.WriteUInt16BEPrefixed(Uri);
 }
Exemplo n.º 9
0
 public override void Serialize(EndianWriter writer)
 {
     writer.WriteUInt16BEPrefixed(LiveId);
 }