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

		}
		COMPILE::JS
		{
			if(typedArray == null)
				typedArray = new Uint8Array(ba);
			return typedArray[idx];
		}
	}
	COMPILE::JS
	{
		private var typedArray:Uint8Array;
	}

	/**
	 *  Writes a byte of binary data at the specified index. Does not change the <code>position</code> property.

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

