protected override void SerializeProtectedPayload(EndianWriter writer) { writer.WriteUInt16BEPrefixed(UserHash); writer.WriteUInt16BEPrefixed(Authorization); writer.WriteBE(SequenceNumber); writer.WriteBE(SequenceBegin); writer.WriteBE(SequenceEnd); }
public override void Serialize(EndianWriter writer) { writer.WriteBE(TextSessionId); writer.WriteBE(TextBufferVersion); writer.WriteBE((ushort)Result); writer.WriteUInt16BEPrefixed(Text); }
public void TestUInt16BEPrefixedString() { _writer.WriteUInt16BEPrefixed("ABCXYZ"); Assert.Equal <byte[]>(new byte[] { 0x00, 0x06, 0x41, 0x42, 0x43, 0x58, 0x59, 0x5A, 0x00 }, _writer.ToBytes()); }
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); }
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); }
public void Serialize(EndianWriter writer) { writer.WriteBE(Offset); writer.WriteBE(DeleteCount); writer.WriteUInt16BEPrefixed(InsertContent); }
public override void Serialize(EndianWriter writer) { writer.WriteBE((ushort)Location); writer.WriteUInt16BEPrefixed(Uri); }
public override void Serialize(EndianWriter writer) { writer.WriteUInt16BEPrefixed(LiveId); }