#NEWLINE# @ methodtrace ( _logger ) #NEWLINE# def bulk_read( self , dev_handle , ep , intf , buff , timeout ) : #NEWLINE# #INDENT# request = _openusb_bulk_request ( ) #NEWLINE# memset ( byref ( request ) , 0 , sizeof ( request ) ) #NEWLINE# ( payload , request . length ) = buff . buffer_info ( ) #NEWLINE# request . payload = cast ( payload , POINTER ( c_uint8 ) ) #NEWLINE# request . timeout = timeout #NEWLINE# _check ( _lib . openusb_bulk_xfer ( dev_handle , intf , ep , byref ( request ) ) ) #NEWLINE# return request . result . transferred_bytes