#NEWLINE# def _sendrecv( self , cmd , data ) : #NEWLINE# #INDENT# buf_size = c_size_t ( 1024 ) #NEWLINE# resp = create_string_buffer ( data . value ) #NEWLINE# check ( u2fh_sendrecv ( self . _devs , self . _index , cmd , data , len ( data ) , resp , byref ( buf_size ) ) ) #NEWLINE# return resp . raw [ 0 : buf_size . value ]