diff options
author | Melanie | 2011-02-07 22:26:09 +0100 |
---|---|---|
committer | Melanie | 2011-02-07 22:26:09 +0100 |
commit | 8c20f94939347d504c175ca7afb6b456188cdf2c (patch) | |
tree | c11023fbc6e701b44128d2b54bd024abd912a1b3 /OpenSim/Framework/Util.cs | |
parent | Prevent a nonexistent inventory item from throwing an exception (diff) | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
download | opensim-SC_OLD-8c20f94939347d504c175ca7afb6b456188cdf2c.zip opensim-SC_OLD-8c20f94939347d504c175ca7afb6b456188cdf2c.tar.gz opensim-SC_OLD-8c20f94939347d504c175ca7afb6b456188cdf2c.tar.bz2 opensim-SC_OLD-8c20f94939347d504c175ca7afb6b456188cdf2c.tar.xz |
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 96292ff..821f1a0 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1346,6 +1346,11 @@ namespace OpenSim.Framework | |||
1346 | return (ipaddr1 != null) ? "http://" + ipaddr1.ToString() + ":" + port1 : uri; | 1346 | return (ipaddr1 != null) ? "http://" + ipaddr1.ToString() + ":" + port1 : uri; |
1347 | } | 1347 | } |
1348 | 1348 | ||
1349 | public static byte[] StringToBytes256(string str, params object[] args) | ||
1350 | { | ||
1351 | return StringToBytes256(string.Format(str, args)); | ||
1352 | } | ||
1353 | |||
1349 | public static byte[] StringToBytes256(string str) | 1354 | public static byte[] StringToBytes256(string str) |
1350 | { | 1355 | { |
1351 | if (String.IsNullOrEmpty(str)) { return Utils.EmptyBytes; } | 1356 | if (String.IsNullOrEmpty(str)) { return Utils.EmptyBytes; } |
@@ -1364,6 +1369,11 @@ namespace OpenSim.Framework | |||
1364 | return data; | 1369 | return data; |
1365 | } | 1370 | } |
1366 | 1371 | ||
1372 | public static byte[] StringToBytes1024(string str, params object[] args) | ||
1373 | { | ||
1374 | return StringToBytes1024(string.Format(str, args)); | ||
1375 | } | ||
1376 | |||
1367 | public static byte[] StringToBytes1024(string str) | 1377 | public static byte[] StringToBytes1024(string str) |
1368 | { | 1378 | { |
1369 | if (String.IsNullOrEmpty(str)) { return Utils.EmptyBytes; } | 1379 | if (String.IsNullOrEmpty(str)) { return Utils.EmptyBytes; } |