mirror of
https://github.com/aaru-dps/Aaru.Helpers.git
synced 2025-12-16 19:24:35 +00:00
Move declaration closer to usage.
This commit is contained in:
@@ -155,7 +155,6 @@ public static class StringHandlers
|
||||
/// <param name="dstring">OSTA compressed unicode byte array.</param>
|
||||
public static string DecompressUnicode(byte[] dstring)
|
||||
{
|
||||
ushort unicode;
|
||||
byte compId = dstring[0];
|
||||
var temp = "";
|
||||
|
||||
@@ -165,6 +164,8 @@ public static class StringHandlers
|
||||
|
||||
for(var byteIndex = 1; byteIndex < dstring.Length;)
|
||||
{
|
||||
ushort unicode;
|
||||
|
||||
if(compId == 16)
|
||||
unicode = (ushort)(dstring[byteIndex++] << 8);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user