Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
checksum = self.checksum(arr) & 0xffffffff
enc = np.empty(arr.nbytes + 4, dtype='u1')
enc[:4].view('
def decode(self, buf, out=None):
arr = ensure_contiguous_ndarray(buf).view('u1')
expect = arr[:4].view('