

def parse_result(self, data):
    '\n        Parse result of L{pyhsm.defines.YSM_BUFFER_LOAD} command.\n\n        @return: Number of bytes now in the YubiHSM internal buffer.\n        @rtype: integer\n\n        @raise pyhsm.exception.YHSM_Error: Unexpected number of bytes were loaded\n        '
    count = ord(data[0])
    if (self.offset == 0):
        if (data != self.data_len):
            raise pyhsm.exception.YHSM_Error(('Incorrect number of bytes in buffer (got %i, expected %i)' % (self.data_len, count)))
    return count

dataset/ETHPy150Open Yubico/python-pyhsm/pyhsm/buffer_cmd.py YHSM_Cmd_Buffer_Load.parse_result/VarMisuse@37/135 `count`->`data`