Вниз
Скачать: CL | DM;

BLOB в UDF   Найти похожие ветки 

← →
jack128 ©   (2003-04-27 19:36) [0]

Добрый день.
В процессе разбора примера работы с BLOB полями в UDF возник такой вопрос(пример из документации к IB, сцепление BLOB"ов)
Разве выделенные строки, при удачном чтении, не приведут к зацикливанию UDF?

void blob_concatenate(Blob from1, Blob from2, Blob to)
/* Note Blob to, as final input parameter, is actually for output! */
{
char *buffer;
long length, b_length;
b_length = MAX(from1->max_seglen, from2->max_seglen);
buffer = malloc(b_length);
/* write the from1 Blob into the return Blob, to */
while ((*from1->blob_get_segment) from1->blob_handle, buffer, b_length,&length))
(*to->blob_put_segment) (to->blob_handle, buffer, length);
/* now write a delimiter as a dividing line in the blob */
(*to->blob_put_segment) (to->blob_handle, DELIMITER, sizeof(DELIMITER) - 1);
/* finally write the from2 Blob into the return Blob, to */
while ((*from2->blob_get_segment) (from2->blob_handle, buffer, b_length, &length))
}


← →
jack128 ©   (2003-04-27 22:53) [1]

поторопился :-() . Продолжние функции

(*to->blob_put_segment) (to->blob_handle, buffer, length);
/* free the memory allocated to the buffer */
free(buffer);
}



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.017 c
14-59889
badaxe2
2003-04-29 13:47
2003.05.19
Кто-нибудь ставил RX Library 2.75 conversion to Delphi 7?


14-59910
Шоломицкий
2003-04-29 22:17
2003.05.19
В инете делать нечего....


1-59697
Novichek
2003-05-07 15:12
2003.05.19
перевод из Dec в Hex


4-59987
QUE
2003-03-19 16:14
2003.05.19
Вставить текст в чужое окно, только что обсуждалось, но не совсем


6-59837
userr
2003-03-22 21:11
2003.05.19
TCP-IP protocol




   Наверх