Formatting.

This commit is contained in:
Alexander Ljungberg committed 2012-07-28 02:06:05 +01:00
1 parent a8150a84be
commit 22b882648b
1 file changed
+4 -4
+4 -4
View File
@@ -229,12 +229,12 @@ CFData.encodeBase64Array = function(input)
// pad with "=" and revert array to previous state
if (pad > 0)
{
output[output.length-1] = "=";
output[output.length - 1] = "=";
input.pop();
}
if (pad > 1)
{
output[output.length-2] = "=";
output[output.length - 2] = "=";
input.pop();
}
@@ -279,8 +279,8 @@ CFData.bytesToUtf16String = function(bytes)
{
// Strings are encoded with 16 bits per character.
var temp = [];
for (var i = 0; i < bytes.length; i+=2)
temp.push(bytes[i+1] << 8 | bytes[i]);
for (var i = 0; i < bytes.length; i += 2)
temp.push(bytes[i + 1] << 8 | bytes[i]);
// This is relatively efficient, I think:
return String.fromCharCode.apply(NULL, temp);
};