cffi_utils/ffi.py
def get_bytes(self, *args):
        '''
        all args-->_cffi_backend.CDataOwn
        Must be a pointer or an array
        Returns-->bytes (if a SINGLE argument was provided)
                  LIST of bytes (if a args was a tuple or list)
        '''
        res = tuple([
            bytes(self.buffer(x)) for x in args
        ])

        if len(res) == 0:
            return None
        elif len(res) == 1:
            return res[0]
        else:
            return res
def get_bytes(self, *args):
        '''
        all args-->_cffi_backend.CDataOwn
        Must be a pointer or an array
        Returns-->bytes (if a SINGLE argument was provided)
                  LIST of bytes (if a args was a tuple or list)
        '''
        res = tuple([
            bytes(self.buffer(x)) for x in args
        ])

        if len(res) == 0:
            return None
        elif len(res) == 1:
            return res[0]
        else:
            return res
def get_bytes ( self , * args ) : res = tuple ( [ bytes ( self . buffer ( x ) ) for x in args ] ) if len ( res ) == 0 : return None elif len ( res ) == 1 : return res [ 0 ] else : return res
all args-->_cffi_backend.CDataOwn
        Must be a pointer or an array
        Returns-->bytes (if a SINGLE argument was provided)
                  LIST of bytes (if a args was a tuple or list)
all args -- > _cffi_backend . CDataOwn Must be a pointer or an array Returns -- > bytes ( if a SINGLE argument was provided ) LIST of bytes ( if a args was a tuple or list )