fixed 'BytesBuffer has no length' for haxe 3.0.1