| 3161 | } |
| 3162 | |
| 3163 | int |
| 3164 | TSCacheHttpInfoVector(TSCacheHttpInfo infop, void *data, int length) |
| 3165 | { |
| 3166 | CacheHTTPInfo *info = reinterpret_cast<CacheHTTPInfo *>(infop); |
| 3167 | CacheHTTPInfoVector vector; |
| 3168 | |
| 3169 | vector.insert(info); |
| 3170 | |
| 3171 | int size = vector.marshal_length(); |
| 3172 | |
| 3173 | if (size > length) { |
| 3174 | // error |
| 3175 | return 0; |
| 3176 | } |
| 3177 | |
| 3178 | return vector.marshal(static_cast<char *>(data), length); |
| 3179 | } |
| 3180 | |
| 3181 | void |
| 3182 | TSCacheHttpInfoDestroy(TSCacheHttpInfo infop) |
nothing calls this directly
no test coverage detected