Additional static functions used to extend existing XML support inside of Unity.
More...
Additional static functions used to extend existing XML support inside of Unity.
Definition at line 36 of file XML.cs.
static Byte [] Hydrogen.XML.StringToUTF8ByteArray |
( |
String |
pXmlString | ) |
|
|
static |
Converts the String to UTF8 Byte array and is used in Deserialization.
- Returns
- A byte array.
- Parameters
-
pXmlString | The source string. |
Definition at line 43 of file XML.cs.
45 var encoding =
new System.Text.UTF8Encoding ();
46 return encoding.GetBytes (pXmlString);
static String Hydrogen.XML.UTF8ByteArrayToString |
( |
Byte[] |
characters | ) |
|
|
static |
To convert a Byte Array of Unicode values (UTF-8 encoded) to a complete String.
- Returns
- String converted from Unicode Byte Array.
- Parameters
-
characters | Unicode Byte Array to be converted to String. |
Definition at line 54 of file XML.cs.
56 var encoding =
new System.Text.UTF8Encoding ();
57 return encoding.GetString (characters);