Writes this SofuObject and all its children into a binary sofu file
Declaration Syntax
C# |
public void WriteBinary( Stream output, Encoding encoding, Endianness endian )
Parameters
- output (Stream)
- Stream to write into
- encoding (Encoding)
- Encoding to use
- endian (Endianness)
- Endianness to use
Examples
CopyC#
Sofu.Sofu.Map map = new Sofu.Sofu.Map(); map.SetAttribute("Hello",new Sofu.Sofu.Value("World"); MemoryStream ms = new MemoryStream(); map.Write(ms,Encoding.BigEndianUnicode,Endianness.BigEndian);