| 1557 | |
| 1558 | |
| 1559 | void blb::BLB_put_data(thread_db* tdbb, const UCHAR* buffer, SLONG length) |
| 1560 | { |
| 1561 | /************************************** |
| 1562 | * |
| 1563 | * b l b : : p u t _ d a t a |
| 1564 | * |
| 1565 | ************************************** |
| 1566 | * |
| 1567 | * Functional description |
| 1568 | * Write data to a blob. |
| 1569 | * Don't worry about segment boundaries. |
| 1570 | * |
| 1571 | **************************************/ |
| 1572 | SET_TDBB(tdbb); |
| 1573 | const BLOB_PTR* p = buffer; |
| 1574 | |
| 1575 | while (length > 0) |
| 1576 | { |
| 1577 | // ASF: the comment below was copied from BLB_get_data |
| 1578 | // I have no idea why this limit is 32768 instead of 32767 |
| 1579 | // 1994-August-12 David Schnepper |
| 1580 | const USHORT n = (USHORT) MIN(length, (SLONG) 32768); |
| 1581 | BLB_put_segment(tdbb, p, n); |
| 1582 | p += n; |
| 1583 | length -= n; |
| 1584 | } |
| 1585 | } |
| 1586 | |
| 1587 | |
| 1588 | void blb::BLB_put_segment(thread_db* tdbb, const void* seg, USHORT segment_length) |
no test coverage detected