From 387e9f7a7faeb412054383080afc3507a1522746 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Fri, 2 Oct 2009 18:31:08 -0700 Subject: * Creates Util.UTF8 and switches some references of Encoding.UTF8 to Util.UTF8 (not all references were switched since not all OpenSim libraries reference OpenSim.Framework) * Shrinks the largest in-memory object, the LLRAW.HeightmapLookupValue struct (only used for exporting to LLRAW terrain files), to the minimum possible size. This seems to have the odd side effect of cutting the size of the two double[256,256] terrain objects in half. Possibly an alignment optimization? --- OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs | 4 ++-- OpenSim/ApplicationPlugins/Rest/RestXmlWriter.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/ApplicationPlugins') diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs index 1e3539f..7db705e 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs @@ -163,7 +163,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory get { return Plugin.RequestId; } } - internal static Encoding Encoding = Encoding.UTF8; + internal static Encoding Encoding = Util.UTF8; /// /// Version control for REST implementation. This @@ -435,7 +435,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory try { byte[] encData_byte = new byte[str.Length]; - encData_byte = Encoding.UTF8.GetBytes(str); + encData_byte = Util.UTF8.GetBytes(str); return Convert.ToBase64String(encData_byte); } catch diff --git a/OpenSim/ApplicationPlugins/Rest/RestXmlWriter.cs b/OpenSim/ApplicationPlugins/Rest/RestXmlWriter.cs index 9abb0c8..283fa2e 100644 --- a/OpenSim/ApplicationPlugins/Rest/RestXmlWriter.cs +++ b/OpenSim/ApplicationPlugins/Rest/RestXmlWriter.cs @@ -45,7 +45,8 @@ namespace OpenSim.ApplicationPlugins.Rest { } - public RestXmlWriter(Stream stream) : this(stream, Encoding.UTF8) + public RestXmlWriter(Stream stream) + : this(stream, Encoding.UTF8) { } -- cgit v1.1