def _NumOfCols(self):
        if not self.connection:
            self.close()
            
        NOC = c_short()
        ret = SQLNumResultCols(self.stmt_h, ADDR(NOC))
        if ret != SQL_SUCCESS:
            check_success(self, ret)
        return NOC.value
Allocate a buffer on the host with specified number of bytes.
dataset/ETHPy150Open harryliu/edwin/edwinServer/site_packages/pypyodbc.py/Cursor._NumOfCols--crossover with--dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/device.py/alloc_host