Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToByteArrayBase64()

static byte[] System.Xml.Serialization.XmlCustomFormatter.ToByteArrayBase64 ( string value)
inlinestaticpackage

Definition at line 288 of file XmlCustomFormatter.cs.

289 {
290 if (value == null)
291 {
292 return null;
293 }
294 value = value.Trim();
295 if (value.Length == 0)
296 {
297 return Array.Empty<byte>();
298 }
299 return Convert.FromBase64String(value);
300 }

References System.Convert.FromBase64String(), and System.value.

Referenced by System.Xml.Serialization.XmlSerializationReader.ToByteArrayBase64().