-
Notifications
You must be signed in to change notification settings - Fork 2
PixiParser
Definition:
namespace PixiEditor.PixiParser;
public partial class PixiParser
Source Code (Common) - PixiParser.cs
Source Code (Serializer) - PixiParser.Serialize.cs
Source Code (Deserializer) - PixiParser.Deserialize.cs
(PixiParser is split into three files, one for common stuff (currently only the file version), one for all the Serialize() method and one for all the Deserialize() methods)
The PixiParser class is responsible for serializing and parsing .pixi files
SerializableDocument document = PixiParser.Deserialize("./pixiFile.pixi");
// Do some stuff with the document
PixiParser.Serialize(document, "./pixiFile.pixi");
Serialize(SerializableDocument)
- Writes the SerializableDocument
into a byte array
Serialize(SerializableDocument, Stream)
- Writes the SerializableDocument
to the Stream
Serialize(SerializableDocument, string)
- Writes the SerializableDocument
to the specified path, if the path does not exist a new file will be created
Deserialize(Span<byte>)
- Deserializes the Span<byte>
into a SerializableDocument
Deserialize(byte[])
- Deserializes the byte[]
into a SerializableDocument
Deserialize(Stream)
- Deserializes the stream
into a SerializableDocument
Deserialize(string path)
- Reads the file at the specified path into a SerializableDocument