tools/hidraw.py
def report_descriptor(self) -> List[int]:
        '''
        Report descriptor of the hidraw node
        '''
        # fcntl.ioctl does not support such big buffer sizes when using the default buffer so we need to provide our own buffer
        buf = array.array('B', self.report_descriptor_size.to_bytes(4, 'little') +
                          self.hidraw_report_descriptor.HID_MAX_DESCRIPTOR_SIZE * b'\x00')

        IOCTL.IOR('H', self.HIDIOCGRDESC, ctypes.sizeof(self.hidraw_report_descriptor)).perform(self._fd, buf=buf)

        ret = self.hidraw_report_descriptor.from_buffer(buf)
        return list(ret.value)[:ret.size]

        Report descriptor of the hidraw node
        
Report descriptor of the hidraw node
Report descriptor of the hidraw node
def report_descriptor(self) -> List[int]:
        buf = array.array('B', self.report_descriptor_size.to_bytes(4, 'little') +
                          self.hidraw_report_descriptor.HID_MAX_DESCRIPTOR_SIZE * b'\x00')
        IOCTL.IOR('H', self.HIDIOCGRDESC, ctypes.sizeof(self.hidraw_report_descriptor)).perform(self._fd, buf=buf)
        ret = self.hidraw_report_descriptor.from_buffer(buf)
        return list(ret.value)[:ret.size]
def report_descriptor ( self ) -> List [ int ] : buf = array . array ( 'B' , self . report_descriptor_size . to_bytes ( 4 , 'little' ) + self . hidraw_report_descriptor . HID_MAX_DESCRIPTOR_SIZE * b'\x00' ) IOCTL . IOR ( 'H' , self . HIDIOCGRDESC , ctypes . sizeof ( self . hidraw_report_descriptor ) ) . perform ( self . _fd , buf = buf ) ret = self . hidraw_report_descriptor . from_buffer ( buf ) return list ( ret . value ) [ : ret . size ]
Report descriptor of the hidraw node
Report descriptor of the hidraw node
'''
        Report descriptor of the hidraw node
        ''' # fcntl.ioctl does not support such big buffer sizes when using the default buffer so we need to provide our own buffer
self