Repository: flex-asjs
Updated Branches:
refs/heads/develop ca30fff9e -> 7b96ec3b8
Change Int8Array to Uint8Array
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7b96ec3b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7b96ec3b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7b96ec3b
Branch: refs/heads/develop
Commit: 7b96ec3b8dda0c4a726f9db33e186a1352ea3dc6
Parents: ca30fff
Author: Harbs <harbs@in-tools.com>
Authored: Sun Jul 3 09:41:32 2016 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Sun Jul 3 09:41:32 2016 +0300
----------------------------------------------------------------------
.../main/flex/org/apache/flex/utils/BinaryData.as | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7b96ec3b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as
index c39d60f..99479da 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as
@@ -88,11 +88,11 @@ public class BinaryData
}
COMPILE::JS
{
- var view:Int8Array;
+ var view:Uint8Array;
growBuffer(1);
- view = new Int8Array(ba, _position, 1);
+ view = new Uint8Array(ba, _position, 1);
view[0] = byte;
_position++;
}
@@ -192,9 +192,9 @@ public class BinaryData
}
COMPILE::JS
{
- var view:Int8Array;
+ var view:Uint8Array;
- view = new Int8Array(ba, _position, 1);
+ view = new Uint8Array(ba, _position, 1);
_position++;
return view[0];
}
@@ -368,8 +368,8 @@ public class BinaryData
COMPILE::JS
{
var newBuffer:ArrayBuffer;
- var newView:Int8Array;
- var view:Int8Array;
+ var newView:Uint8Array;
+ var view:Uint8Array;
var i:int;
var n:int;
@@ -377,8 +377,8 @@ public class BinaryData
{
n = ba.byteLength;
newBuffer = new ArrayBuffer(n + extra);
- newView = new Int8Array(newBuffer, 0, n);
- view = new Int8Array(ba, 0, n);
+ newView = new Uint8Array(newBuffer, 0, n);
+ view = new Uint8Array(ba, 0, n);
for (i = 0; i < n; i++)
{
newView[i] = view[i];
|