Lines Matching refs:buf

60 static int pdo_odbc_utf82ucs2(pdo_stmt_t *stmt, int is_unicode, const char *buf,   in pdo_odbc_utf82ucs2()  argument
68 ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, NULL, 0); in pdo_odbc_utf82ucs2()
81 …ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, (LPWSTR)S->convbuf, S->convbufsize / sizeof(WCH… in pdo_odbc_utf82ucs2()
95 static int pdo_odbc_ucs22utf8(pdo_stmt_t *stmt, int is_unicode, const char *buf, in pdo_odbc_ucs22utf8() argument
103 ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), NULL, 0, NULL, NULL); in pdo_odbc_ucs22utf8()
113 …ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), S->convbuf, S->convbufsi… in pdo_odbc_ucs22utf8()
166 char *buf = NULL; in odbc_stmt_execute() local
204 if (buf) { in odbc_stmt_execute()
205 efree(buf); in odbc_stmt_execute()
220 if (buf) { in odbc_stmt_execute()
221 efree(buf); in odbc_stmt_execute()
227 if (buf == NULL) { in odbc_stmt_execute()
228 buf = emalloc(8192); in odbc_stmt_execute()
232 len = php_stream_read(stm, buf, 8192); in odbc_stmt_execute()
236 SQLPutData(S->stmt, buf, len); in odbc_stmt_execute()
241 if (buf) { in odbc_stmt_execute()
242 efree(buf); in odbc_stmt_execute()
624 char *buf; in odbc_stmt_get_col() local
652 buf = estrndup(C->data, 256); in odbc_stmt_get_col()
665 buf = erealloc(buf, used + 255+1); in odbc_stmt_get_col()
666 memcpy(buf + used, buf2, 255); in odbc_stmt_get_col()
669 buf = erealloc(buf, used + C->fetched_len+1); in odbc_stmt_get_col()
670 memcpy(buf + used, buf2, C->fetched_len); in odbc_stmt_get_col()
682 buf[used] = '\0'; in odbc_stmt_get_col()
684 *ptr = buf; in odbc_stmt_get_col()
777 char buf[256]; in odbc_stmt_get_attr() local
779 rc = SQLGetCursorName(S->stmt, buf, sizeof(buf), &len); in odbc_stmt_get_attr()
782 ZVAL_STRINGL(val, buf, len, 1); in odbc_stmt_get_attr()