24#ifndef CRITERION_NEW_STREAM_H_
25#define CRITERION_NEW_STREAM_H_
31#define CR_STREAM_BUFSIZE 4096
50 int (*
read)(
void *
cookie,
void *buf,
size_t *size),
88inline bool operator==(criterion::stream &s1, criterion::stream &s2);
89inline bool operator<(criterion::stream &s1, criterion::stream &s2);
93cr_stream::cr_stream(T *cookie,
94 int (*read)(
void *cookie,
void *buf,
size_t *size),
95 void (*close)(
void *cookie))
96 : cookie(static_cast<void *>(cookie))
CURL_EXTERN CURLMcode curl_socket_t s
DOCTEST_INTERFACE bool operator==(const String &lhs, const String &rhs)
DOCTEST_INTERFACE bool operator<(const String &lhs, const String &rhs)
basic_ostream< char, traits > & operator<<(basic_ostream< char, traits > &, const char *)
CR_BEGIN_C_API CR_API void cr_stream_init(struct cr_stream *s)
CR_API int cr_user_stream_eq(struct cr_stream *s1, struct cr_stream *s2)
CR_API void cr_stream_close(struct cr_stream *s)
CR_API int cr_user_stream_lt(struct cr_stream *s1, struct cr_stream *s2)
CR_API char * cr_user_stream_tostr(const struct cr_stream *s)
#define CR_STREAM_BUFSIZE
struct cri_stream_data * cri_data
void(* close)(void *cookie)
int(* read)(void *cookie, void *buf, size_t *size)
char buffer[CR_STREAM_BUFSIZE]