aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Capabilities/LLSDHelpers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Capabilities/LLSDHelpers.cs')
-rw-r--r--OpenSim/Capabilities/LLSDHelpers.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Capabilities/LLSDHelpers.cs b/OpenSim/Capabilities/LLSDHelpers.cs
index e331cfb..4a7c6a5 100644
--- a/OpenSim/Capabilities/LLSDHelpers.cs
+++ b/OpenSim/Capabilities/LLSDHelpers.cs
@@ -54,6 +54,19 @@ namespace OpenSim.Framework.Capabilities
54 return sw.ToString(); 54 return sw.ToString();
55 } 55 }
56 56
57 public static string SerialiseLLSDReplyNoHeader(object obj)
58 {
59 StringWriter sw = new StringWriter();
60 XmlTextWriter writer = new XmlTextWriter(sw);
61 writer.Formatting = Formatting.None;
62 SerializeOSDType(writer, obj);
63 writer.Close();
64
65 //m_log.DebugFormat("[LLSD Helpers]: Generated serialized LLSD reply {0}", sw.ToString());
66
67 return sw.ToString();
68 }
69
57 private static void SerializeOSDType(XmlTextWriter writer, object obj) 70 private static void SerializeOSDType(XmlTextWriter writer, object obj)
58 { 71 {
59 Type myType = obj.GetType(); 72 Type myType = obj.GetType();