| 1619 | } |
| 1620 | |
| 1621 | static void |
| 1622 | TSMimeFieldValueSet(TSMBuffer bufp, TSMLoc field_obj, int idx, const char *value, int length) |
| 1623 | { |
| 1624 | MIMEFieldSDKHandle *handle = reinterpret_cast<MIMEFieldSDKHandle *>(field_obj); |
| 1625 | HdrHeap *heap = (reinterpret_cast<HdrHeapSDKHandle *>(bufp))->m_heap; |
| 1626 | |
| 1627 | if (length == -1) { |
| 1628 | length = strlen(value); |
| 1629 | } |
| 1630 | |
| 1631 | if (idx >= 0) { |
| 1632 | mime_field_value_set_comma_val(heap, handle->mh, handle->field_ptr, idx, value, length); |
| 1633 | } else { |
| 1634 | mime_field_value_set(heap, handle->mh, handle->field_ptr, value, length, true); |
| 1635 | } |
| 1636 | } |
| 1637 | |
| 1638 | static void |
| 1639 | TSMimeFieldValueInsert(TSMBuffer bufp, TSMLoc field_obj, const char *value, int length, int idx) |
no test coverage detected