public void Serialize(CppBinaryWriter writer) { writer.Write(Name); writer.Write((byte)Modifiers); writer.Write(ParametersCount); ByteBlock.Serialize(writer); }
public void Serialize(CppBinaryWriter writer) { writer.Write(Symbols.Count); foreach (var pair in Symbols) { writer.Write(pair.Key); pair.Value.Serialize(writer); } }
public void Serialize(CppBinaryWriter writer) { writer.Write(m_table.Count); foreach (var symbol in m_table) { writer.Write(symbol.Key); symbol.Value.Serialize(writer); } }
public void Serialize(CppBinaryWriter writer) { //SymbolTable.Serialize(writer); int size = Instructions.Sum(x => x.GetSize() + 1); writer.Write(size); foreach (var code in Instructions) { writer.Write(code.OpId); code.Serialize(writer); } writer.Write(LocalsCount); }
public void Serialize(CppBinaryWriter writer) { writer.Write(HEADER); MainPointEntry.Serialize(writer); writer.Write(ByteClasses.Count); foreach (var pair in ByteClasses) { pair.Serialize(writer); } writer.Write(ConstantsTable.Count); foreach (var value in ConstantsTable) { if (value is string) { writer.Write(1); writer.Write(value.ToString()); } else if (value is bool) { writer.Write(2); writer.Write((bool)value); } else { throw new Exception("Unhandled constant serialization."); } } }
public void Serialize(CppBinaryWriter writer) { writer.Write(Name); writer.Write((byte)Type); writer.Write(Methods.Count); foreach (var method in Methods) { method.Serialize(writer); } writer.Write(Fields.Count); foreach (var field in Fields) { field.Serialize(writer); } }
public void Serialize(CppBinaryWriter writer) { writer.Write(constantId); }
public void Serialize(CppBinaryWriter writer) { writer.Write(parametersCount); writer.Write(methodId); }
public void Serialize(CppBinaryWriter writer) { writer.Write(nativeId); }
public void Serialize(CppBinaryWriter writer) { writer.Write(classId); writer.Write(fieldId); }
public void Serialize(CppBinaryWriter writer) { writer.Write(ClassIndex); writer.Write(MethodIndex); }
public void Serialize(CppBinaryWriter writer) { writer.Write(Name); writer.Write((byte)Modifiers); Meta.Serialize(writer); }
public void Serialize(CppBinaryWriter writer) { writer.Write(targetIndex); }
public void Serialize(CppBinaryWriter writer) { writer.Write(Id); writer.Write(Type); }
public void Serialize(CppBinaryWriter writer) { writer.Write(propertyId); }
public void Serialize(CppBinaryWriter writer) { writer.Write(variableId); }
public void Serialize(CppBinaryWriter writer) { writer.Write((int)type); }
public void Serialize(CppBinaryWriter writer) { writer.Write(value); }
public void Serialize(CppBinaryWriter writer) { writer.Write(methodId); }