Did I find the right examples for you? yes no

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/d/s/ds4drv-0.5.0/ds4drv/backends/hidraw.py   ds4drv(Download)
from ..exceptions import DeviceError
from ..device import DS4Device
from ..utils import zero_copy_slice
 
 
        if self.type == "bluetooth":
            # Cut off bluetooth data
            buf = zero_copy_slice(self.buf, 2)
        else:
            buf = self.buf

src/d/s/ds4drv-0.5.0/ds4drv/backends/bluetooth.py   ds4drv(Download)
from ..exceptions import BackendError, DeviceError
from ..device import DS4Device
from ..utils import zero_copy_slice
 
 
 
        # Cut off bluetooth data
        buf = zero_copy_slice(self.buf, 3)
 
        return self.parse_report(buf)

src/d/s/ds4drv-HEAD/ds4drv/backends/hidraw.py   ds4drv(Download)
from ..exceptions import DeviceError
from ..device import DS4Device
from ..utils import zero_copy_slice
 
 
        if self.type == "bluetooth":
            # Cut off bluetooth data
            buf = zero_copy_slice(self.buf, 2)
        else:
            buf = self.buf

src/d/s/ds4drv-HEAD/ds4drv/backends/bluetooth.py   ds4drv(Download)
from ..exceptions import BackendError, DeviceError
from ..device import DS4Device
from ..utils import zero_copy_slice
 
 
 
        # Cut off bluetooth data
        buf = zero_copy_slice(self.buf, 3)
 
        return self.parse_report(buf)