git » swiftpm » main » tree

[main] / Sources / c_snikket / iinclude / sha / Hash.h

// Generated by Haxe 4.3.3
#ifndef INCLUDED_sha_Hash
#define INCLUDED_sha_Hash

#ifndef HXCPP_H
#include <hxcpp.h>
#endif

HX_DECLARE_CLASS2(haxe,io,Bytes)
HX_DECLARE_CLASS1(sha,Hash)

namespace sha{


class HXCPP_CLASS_ATTRIBUTES Hash_obj : public ::hx::Object
{
	public:
		typedef ::hx::Object super;
		typedef Hash_obj OBJ_;
		Hash_obj();

	public:
		enum { _hx_ClassId = 0x49a7eb1a };

		void __construct(int blockSize,int finalSize);
		inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="sha.Hash")
			{ return ::hx::Object::operator new(inSize,inContainer,inName); }
		inline void *operator new(size_t inSize, int extra)
			{ return ::hx::Object::operator new(inSize+extra,true,"sha.Hash"); }

		//~Hash_obj();

		HX_DO_RTTI_ALL;
		::hx::Val __Field(const ::String &inString, ::hx::PropertyAccess inCallProp);
		::hx::Val __SetField(const ::String &inString,const ::hx::Val &inValue, ::hx::PropertyAccess inCallProp);
		void __GetFields(Array< ::String> &outFields);
		static void __register();
		void __Mark(HX_MARK_PARAMS);
		void __Visit(HX_VISIT_PARAMS);
		bool _hx_isInstanceOf(int inClassId);
		::String __ToString() const { return HX_("Hash",ee,5b,e1,2f); }

		int finalSize;
		int length;
		 ::haxe::io::Bytes block;
		 ::sha::Hash update( ::haxe::io::Bytes data);
		::Dynamic update_dyn();

		 ::haxe::io::Bytes digest();
		::Dynamic digest_dyn();

		virtual void _update( ::haxe::io::Bytes data) {}
		::Dynamic _update_dyn();
		virtual  ::haxe::io::Bytes _hash() { return 0; }
		::Dynamic _hash_dyn();
};

} // end namespace sha

#endif /* INCLUDED_sha_Hash */