Repository URL to install this package:
Version:
1.0.8-1 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
coverage
/
__pycache__
/
numbits.cpython-37.pyc
|
---|
B Ò÷ií¿\sÆã @ s d Z ddlZddlmZ ddlmZmZmZmZ ddl m Z mZ ejr^dd Z edd d ndd Z eddd e d dddd Ze ddddd Ze dddddd Ze dddddd Ze dddddd Ze dddddd Zd!d" ZdS )#aÒ Functions to manipulate packed binary representations of number sets. To save space, coverage stores sets of line numbers in SQLite using a packed binary representation called a numbits. A numbits is a set of positive integers. A numbits is stored as a blob in the database. The exact meaning of the bytes in the blobs should be considered an implementation detail that might change in the future. Use these functions to work with those binary blobs of data. é N)Úenv)Úbyte_to_intÚ bytes_to_intsÚbinary_bytesÚzip_longest)ÚcontractÚnew_contractc C s | S )z?Convert a bytestring into a type SQLite will accept for a blob.© )Úbr r ú/build/wlanpi-profiler-MIf3Xw/wlanpi-profiler-1.0.8/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/coverage/numbits.pyÚ_to_blob s r Zblobc C s t | tS )N)Ú isinstanceÚbytes)Úvr r r Ú<lambda> ó r c C s t | S )z?Convert a bytestring into a type SQLite will accept for a blob.)Úbuffer)r r r r r s c C s t | tS )N)r r )r r r r r ! r ÚIterable)ÚnumsÚreturnsc C sl yt | d d }W n tk r, tdS X t|}x(| D ] }||d d|d >