Lines Matching refs:buf

58 static int pdo_odbc_utf82ucs2(pdo_stmt_t *stmt, int is_unicode, const char *buf,  in pdo_odbc_utf82ucs2()  argument
66 ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, NULL, 0); in pdo_odbc_utf82ucs2()
79 …ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, (LPWSTR)S->convbuf, S->convbufsize / sizeof(WCH… in pdo_odbc_utf82ucs2()
93 static int pdo_odbc_ucs22utf8(pdo_stmt_t *stmt, int is_unicode, const char *buf, in pdo_odbc_ucs22utf8() argument
101 ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), NULL, 0, NULL, NULL); in pdo_odbc_ucs22utf8()
111 …ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), S->convbuf, S->convbufsi… in pdo_odbc_ucs22utf8()
165 char *buf = NULL; in odbc_stmt_execute() local
209 if (buf) { in odbc_stmt_execute()
210 efree(buf); in odbc_stmt_execute()
225 if (buf) { in odbc_stmt_execute()
226 efree(buf); in odbc_stmt_execute()
232 if (buf == NULL) { in odbc_stmt_execute()
233 buf = emalloc(8192); in odbc_stmt_execute()
237 len = php_stream_read(stm, buf, 8192); in odbc_stmt_execute()
241 SQLPutData(S->stmt, buf, len); in odbc_stmt_execute()
246 if (buf) { in odbc_stmt_execute()
247 efree(buf); in odbc_stmt_execute()
661 char *buf; in odbc_stmt_get_col() local
691 buf = estrndup(C->data, 256); in odbc_stmt_get_col()
711 buf = erealloc(buf, used + 255+1); in odbc_stmt_get_col()
712 memcpy(buf + used, buf2, 255); in odbc_stmt_get_col()
715 buf = erealloc(buf, used + C->fetched_len+1); in odbc_stmt_get_col()
716 memcpy(buf + used, buf2, C->fetched_len); in odbc_stmt_get_col()
728 buf[used] = '\0'; in odbc_stmt_get_col()
730 *ptr = buf; in odbc_stmt_get_col()
823 char buf[256]; in odbc_stmt_get_attr() local
825 rc = SQLGetCursorName(S->stmt, buf, sizeof(buf), &len); in odbc_stmt_get_attr()
828 ZVAL_STRINGL(val, buf, len); in odbc_stmt_get_attr()