
    3%i                     X   d dl Z d dlmZ 	 d dlmZ  e       Zej1                  d       de j2                  v re j2                  d   dv rd	Znd
Z e       Z ee j                  j                  e j                  j                  e      d            5 Zej=                         ZejA                  deg ee       ddd        G d d      Z!e"dk(  rejG                          yy# e$ r d dlZd dlZe j                  j                  e j                  j                  e      d      Zej                  j                  de      Zej                  j#                  e      Zeej&                  ej(                  <   ej*                  j-                  e       ej                  ZY w xY w# 1 sw Y   xY w)    N)FFI)get_compile_argsz_compile_args.pyzautobahn.nvx._compile_argsa  
    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);

    size_t nvx_utf8vld_get_current_index (void* utf8vld);

    size_t nvx_utf8vld_get_total_index (void* utf8vld);
AUTOBAHN_USE_NVX)1trueFTz_utf8validator.c_nvx_utf8validator)	librariesextra_compile_argsoptionalc                   "    e Zd ZdZd Zd Zd Zy)Utf8Validatorz
    :noindex:
    c                     t         | _         ddlm} || _        | j                   j                  | j                  j	                         | j                  j
                        | _        y )Nr   )lib)ffir   r   gcnvx_utf8vld_newnvx_utf8vld_free_vld)selfr   s     y/var/www/html/navyabakers_fullstack/navyabakers_prod/venv_new/lib/python3.12/site-packages/autobahn/nvx/_utf8validator.py__init__zUtf8Validator.__init__a   s@    *HHKK 8 8 :DHH<U<UV	    c                 N    | j                   j                  | j                         y )N)r   nvx_utf8vld_resetr   )r   s    r   resetzUtf8Validator.resetk   s    ""499-r   c                    | j                   j                  | j                  |t        |            }| j                   j	                  | j                        }| j                   j                  | j                        }|dk\  |dk(  ||fS )Nr   )r   nvx_utf8vld_validater   lennvx_utf8vld_get_current_indexnvx_utf8vld_get_total_index)r   barescurrent_indextotal_indexs        r   validatezUtf8Validator.validaten   si    hh++DIIr3r7C>>tyyIhh::499Eq#(M;??r   N)__name__
__module____qualname____doc__r   r   r%    r   r   r   r   \   s    W.@r   r   __main__)$oscffir   autobahn.nvx._compile_argsr   ImportErrorimportlib.util	importlibsyspathjoindirname__file___pathutilspec_from_file_locationspecmodule_from_specmodmodulesnameloaderexec_moduler   cdefenvironr   r
   openfdreadc_source
set_sourcer   r&   compiler*   r   r   <module>rI      s  6 
 ,;  
e ( #

3E(F-(WHH
 &' 	"'',,rwwx02D
EF "wwyHNN-  @ @2 zKKM g  ,
 GGLL24FGE>>112NPUVD
..
)
)$
/C CKK		KKC ++,^ s   C  'F  B9FF F)