 		return bd;
 	}
 
+    /**
+     *  Gets a reference to the internal array of bytes.
+     *  On the Flash side, this is  a ByteArray.
+     *  On the JS side, it's a Uint8Array.
+     *  This is primarily used for indexed access to the bytes, and internally
+     *  where the platform-specific implementation is significant.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.7.0
+     */
+     COMPILE::SWF
+     public function get array():ByteArray
+     {
+        return ba;
+     }
+
+    /**
+     *  Gets a reference to the internal array of bytes.
+     *  On the Flash side, this is  a ByteArray.
+     *  On the JS side, it's a Uint8Array.
+     *  This is primarily used for indexed access to the bytes, and internally
+     *  where the platform-specific implementation is significant.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.7.0
+     */
+     COMPILE::JS
+     public function get array():Uint8Array
+     {
+        return getTypedArray();
+     }
+
 	private var _endian:String = Endian.DEFAULT;
 
 	/**

        var view:Uint8Array = new Uint8Array(ba, 0, Math.min(newSize,n));
        newView.set(view);
        ba = newBuffer;
		typedArray = null;
    }
    /**
     *  The total number of bytes remaining to be read.

                var encoder:TextEncoder = new TextEncoder('utf-8');
                bytes = encoder.encode(str);
                ba = bytes.buffer;
				_typedArray = null;
                return;
            }

