| Current Path : /snap/lxd/current/lib/python3/dist-packages/pyuefivars/__pycache__/ |
| Current File : //snap/lxd/current/lib/python3/dist-packages/pyuefivars/__pycache__/aws_file.cpython-312.pyc |
�
5B�iB � � � G d � de � Zy)c � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zy)�AWSVarStoreFilec � � || _ y �N)�file)�selfr s �U/build/lxd/parts/uefivars/install/lib/python3.12/site-packages/pyuefivars/aws_file.py�__init__zAWSVarStoreFile.__init__ s � ��� � c � � | j j |� }t |� |k7 r2t d| j | j j � fz � �|S )NzUnexpected end of %s at 0x%x)r �read�len� Exception�tell)r �size�values r r zAWSVarStoreFile.read
sJ � �� � ���t�$���u�:����:�d�i�i������IY�=Z�Z�[�[��r
c �P � t j | j d� dd�� S )N� �littleF�� byteorder�signed��int�
from_bytesr �r s r �read64zAWSVarStoreFile.read64 � � ��~�~�d�i�i��l�h�u�~�M�Mr
c �P � t j | j d� dd�� S )N� r Fr r r s r �read32zAWSVarStoreFile.read32 r r
c �P � t j | j d� dd�� S )N� r Fr r r s r �read16zAWSVarStoreFile.read16 r r
c �P � t j | j d� dd�� S )N� r Fr r r s r �read8zAWSVarStoreFile.read8 r r
c �D � | j � }| j |� S r )r r )r r s r �readdatazAWSVarStoreFile.readdata s � ��{�{�}���y�y���r
c �@ � | j � j d� S �Nzutf-8)r( �decoder s r �readstrzAWSVarStoreFile.readstr s � ��}�}��%�%�g�.�.r
c �$ � | j d� S �N� �r r s r �readguidzAWSVarStoreFile.readguid# � � ��y�y��}�r
c �$ � | j d� S r. r0 r s r �
readtimestampzAWSVarStoreFile.readtimestamp&