def parse_result(self, data):
<EOL>count = ord(data[<NUM_LIT:0>])<EOL>if self.offset == <NUM_LIT:0>:<EOL><INDENT>if count != self.data_len:<EOL><INDENT>raise pyhsm.exception.YHSM_Error("<STR_LIT>"% (self.data_len, count))<EOL><DEDENT><DEDENT>return count<EOL>
Parse result of L{pyhsm.defines.YSM_BUFFER_LOAD} command.

@return: Number of bytes now in the YubiHSM internal buffer.
@rtype: integer

@raise pyhsm.exception.YHSM_Error: Unexpected number of bytes were loaded