Browse Source

bugfix : flash default to big endian

Nicolas Cannasse 11 years ago
parent
commit
223c91be9a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/haxe/io/BytesBuffer.hx

+ 1 - 0
std/haxe/io/BytesBuffer.hx

@@ -47,6 +47,7 @@ class BytesBuffer {
 		b = untyped StringBuf.__make();
 		#elseif flash9
 		b = new flash.utils.ByteArray();
+		b.endian = flash.utils.Endian.LITTLE_ENDIAN;
 		#elseif php
 		b = "";
 		#elseif cpp