protected override void SerializeProtectedPayload(BEWriter writer)
        {
            writer.WriteUInt16Prefixed(UserHash);
            writer.WriteUInt16Prefixed(Authorization);

            writer.Write(SequenceNumber);
            writer.Write(SequenceBegin);
            writer.Write(SequenceEnd);
        }
        public void TestUInt16PrefixedString()
        {
            _writer.WriteUInt16Prefixed("ABCXYZ");

            Assert.Equal <byte[]>(new byte[] { 0x00, 0x06, 0x41, 0x42, 0x43, 0x58, 0x59, 0x5A, 0x00 },
                                  _writer.ToBytes());
        }
Exemple #3
0
 public override void Serialize(BEWriter writer)
 {
     writer.Write(TextSessionId);
     writer.Write(TextBufferVersion);
     writer.Write((ushort)Result);
     writer.WriteUInt16Prefixed(Text);
 }
 public override void Serialize(BEWriter writer)
 {
     writer.Write(TextSessionId);
     writer.Write(BaseVersion);
     writer.Write(SubmittedVersion);
     writer.Write(TotalTextBytelength);
     writer.Write(SelectionStart);
     writer.Write(SelectionLength);
     writer.Write(Flags);
     writer.Write(TextChunkByteStart);
     writer.WriteUInt16Prefixed(TextChunk);
     // writer.Write(Delta);
 }
        public override void Serialize(BEWriter writer)
        {
            writer.Write((ushort)DeviceType);
            writer.Write(NativeWidth);
            writer.Write(NativeHeight);
            writer.Write(DpiX);
            writer.Write(DpiY);

            writer.Write((long)DeviceCapabilities);

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

            writer.WriteUInt16Prefixed(DisplayName);
        }
 public override void Serialize(BEWriter writer)
 {
     writer.WriteUInt16Prefixed(Json);
 }
 public void Serialize(BEWriter writer)
 {
     writer.Write(Offset);
     writer.Write(DeleteCount);
     writer.WriteUInt16Prefixed(InsertContent);
 }
 public override void Serialize(BEWriter writer)
 {
     writer.Write((ushort)Location);
     writer.WriteUInt16Prefixed(Uri);
 }
 protected override void SerializePayload(BEWriter writer)
 {
     writer.WriteUInt16Prefixed(LiveId);
 }