Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.05.19;
Скачать: 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 вся ветка

Текущий архив: 2003.05.19;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.014 c
4-60002
Nick Denry
2003-03-16 22:34
2003.05.19
Разница в шрифте!


1-59665
edicon
2003-05-07 00:25
2003.05.19
Шаблоны Excel


14-59894
Vlad Oshin
2003-04-29 10:23
2003.05.19
Кто такие ителлегенты?


6-59834
Fire Man
2003-03-22 18:39
2003.05.19
Подскажите пожалуйста, как узнать подключен ли комп к Инету и


3-59581
Sergey
2003-04-25 15:59
2003.05.19
SQL запрос ???