
    8'h	                        d dl mZ d dlZd dlmZ  e       Zej                  d        eej                  j                  ej                  j                  e      d            5 Zej                         Zej                  deg g d       ddd        G d	 d
      Zedk(  rej%                          yy# 1 sw Y   *xY w)    )absolute_importN)FFIa1  
    void* nvx_utf8vld_new ();

    void nvx_utf8vld_reset (void* utf8vld);

    int nvx_utf8vld_validate (void* utf8vld, const uint8_t* data, size_t length);

    void nvx_utf8vld_free (void* utf8vld);

    int nvx_utf8vld_set_impl(void* utf8vld, int impl);

    int nvx_utf8vld_get_impl(void* utf8vld);
z_utf8validator.c_nvx_utf8validator)z-std=c99z-Wallz-Wno-strict-prototypesz-O3z-march=native)	librariesextra_compile_argsc                       e Zd Zd Zd Zd Zy)Utf8Validatorc                 *   t         | _         ddlm} || _        | j                   j                  | j                  j	                         | j                  j
                        | _        t        | j                  j                  | j                               y )Nr   )lib)	ffir   r   gcnvx_utf8vld_newnvx_utf8vld_free_vldprintnvx_utf8vld_get_impl)selfr   s     W/var/www/html/trade_iq/venv/lib/python3.12/site-packages/autobahn/nvx/_utf8validator.py__init__zUtf8Validator.__init__=   s[    *HHKK 8 8 :DHH<U<UV	dhh++DII67    c                 N    | j                   j                  | j                         y )N)r   nvx_utf8vld_resetr   )r   s    r   resetzUtf8Validator.resetF   s    ""499-r   c                 z    | j                   j                  | j                  |t        |            }|dk\  |dk(  d d fS )Nr   )r   nvx_utf8vld_validater   len)r   baress      r   validatezUtf8Validator.validateI   s9    hh++DIIr3r7Cq#(D$//r   N)__name__
__module____qualname__r   r   r    r   r   r	   r	   ;   s    8.0r   r	   __main__)
__future__r   oscffir   r   cdefopenpathjoindirname__file__fdreadc_source
set_sourcer	   r    compiler#   r   r   <module>r3      s   6 ' 	  
e  
  
"'',,rwwx02D
EF "wwyHNNb	  0 0& zKKM ; s   $(B55B>