| 1053 | using URLPartSetF = void (URL::*)(const char *, int); |
| 1054 | |
| 1055 | static const char * |
| 1056 | URLPartGet(TSMBuffer bufp, TSMLoc obj, int *length, URLPartGetF url_f) |
| 1057 | { |
| 1058 | sdk_assert(sdk_sanity_check_mbuffer(bufp) == TS_SUCCESS); |
| 1059 | sdk_assert(sdk_sanity_check_url_handle(obj) == TS_SUCCESS); |
| 1060 | sdk_assert(sdk_sanity_check_null_ptr((void *)length) == TS_SUCCESS); |
| 1061 | |
| 1062 | URL u; |
| 1063 | |
| 1064 | u.m_heap = (reinterpret_cast<HdrHeapSDKHandle *>(bufp))->m_heap; |
| 1065 | u.m_url_impl = reinterpret_cast<URLImpl *>(obj); |
| 1066 | |
| 1067 | return (u.*url_f)(length); |
| 1068 | } |
| 1069 | |
| 1070 | static TSReturnCode |
| 1071 | URLPartSet(TSMBuffer bufp, TSMLoc obj, const char *value, int length, URLPartSetF url_f) |
no test coverage detected