public void Serialize(IPofWriter writer) { writer.WriteS32(0, MobileId); writer.WriteS32(1, X); writer.WriteS32(2, Y); writer.WriteBoolean(3, IsStartOfGame); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, MobileId); writer.WriteS32(1, X); writer.WriteS32(2, Y); writer.WriteBoolean(3, IsStartOfGame); }
public void Serialize(IPofWriter writer) { writer.WriteU32(0, kVersion); writer.WriteString(1, SourceDirectory); writer.WriteString(2, DestinationDirectory); writer.WriteS32(3, ThumbnailsToGenerate); }
public void Serialize(IPofWriter writer) { int i = 0; writer.WriteObject(i++, key); writer.WriteS32(i++, level); writer.WriteCollection(i++, friends); }
public void Serialize(IPofWriter writer) { int i = 0; writer.WriteObject(i++, key); writer.WriteS32(i++, level); writer.WriteArray(i++, friends.ToArray()); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, packetId); writer.WriteFloat(1, leftX); writer.WriteFloat(2, leftY); writer.WriteFloat(3, rightX); writer.WriteFloat(4, rightY); writer.WriteFloat(5, leftTrigger); writer.WriteFloat(6, rightTrigger); writer.WriteCollection(7, buttons); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, packetId); writer.WriteFloat(1, leftX); writer.WriteFloat(2, leftY); writer.WriteFloat(3, rightX); writer.WriteFloat(4, rightY); writer.WriteFloat(5, leftTrigger); writer.WriteFloat(6, rightTrigger); writer.WriteCollection(7, buttons); }
public void Serialize(IPofWriter writer) { writer.WriteBoolean(0, isPolymorphic); writer.WriteS32(1, elements.Length); var context = writer.Context; var serializer = new PofSerializer(context); using (var elementStream = new MemoryStream()) { using (var elementStreamWriter = new BinaryWriter(elementStream, Encoding.UTF8, true)) { var serializationFlags = isPolymorphic ? SerializationFlags.None : SerializationFlags.Typeless; foreach (var element in elements) { serializer.Serialize(elementStreamWriter, element, serializationFlags); } } writer.WriteBytes(2, elementStream.ToArray()); } }
public void Serialize(IPofWriter writer) { writer.WriteBoolean(0, keysPolymorphic); writer.WriteBoolean(1, valuesPolymorphic); writer.WriteS32(2, items.Count); var context = writer.Context; var serializer = new PofSerializer(context); using (var elementStream = new MemoryStream()) { using (var elementStreamWriter = new BinaryWriter(elementStream, Encoding.UTF8, true)) { var keySerializationFlags = keysPolymorphic ? SerializationFlags.None : SerializationFlags.Typeless; var valueSerializationFlags = valuesPolymorphic ? SerializationFlags.None : SerializationFlags.Typeless; foreach (var kvp in items) { serializer.Serialize(elementStreamWriter, kvp.Key, keySerializationFlags); serializer.Serialize(elementStreamWriter, kvp.Value, valueSerializationFlags); } } writer.WriteBytes(3, elementStream.ToArray()); } }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, 0x12345678); writer.WriteCollection(1, value, true); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, kVersion); writer.WriteS32(1, ServicePort); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, transactionId); writer.WriteBoolean(1, okay); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, 0x12345678); writer.WriteObject(1, value); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, InjectionAttempts); writer.WriteS32(1, InjectionAttemptDelay); }
public void Serialize(IPofWriter writer) { writer.WriteU32(0, kVersion); writer.WriteString(1, SourceDirectory); writer.WriteString(2, DestinationDirectory); writer.WriteS32(3, ThumbnailsToGenerate); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, kVersion); writer.WriteString(1, SelectedThumbnailPath); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, kVersion); writer.WriteU32(1, category.Value); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, value); }
public void Serialize(IPofWriter writer) { writer.AssignSlot(0, Buffer); writer.WriteS32(1, Offset); writer.WriteS32(2, Length); }
protected override void Serialize(IPofWriter writer, int baseSlot) { writer.WriteCollection(baseSlot + 0, Blocks); writer.WriteS32(baseSlot + 1, ServicePort); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, transactionId); writer.WriteObject(1, processor); }
public void Serialize(IPofWriter writer) { writer.WriteString(0, name); writer.WriteS32(1, propertiesRevision); writer.AssignSlot(2, propertiesData, propertiesDataOffset, propertiesDataLength); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, transactionId); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, kVersion); writer.WriteObject(1, resolvedPath); writer.WriteU32(2, (uint)target); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, TargetProcessId); writer.WriteCollection(1, Components, true); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, kVersion); writer.WriteU32(1, category.Value); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, InjectionAttempts); writer.WriteS32(1, InjectionAttemptDelay); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, kVersion); writer.WriteBoolean(1, IsEnabled); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, kVersion); writer.WriteString(1, SelectedThumbnailPath); }
public void Serialize(IPofWriter writer) { writer.WriteS32(0, kVersion); writer.WriteBoolean(1, IsEnabled); }
public void Serialize(IPofWriter writer) { writer.WriteS64(0, accountId); writer.WriteS32(1, (int)errorCodeFlags); }