class http_read_sink - 5cript/attender GitHub Wiki
| Members | Descriptions |
|---|---|
public http_read_sink() |
|
public virtual ~http_read_sink() = default |
|
public size_type write(const char * data,size_type size) |
|
public size_type write(std::vector< char > const & buffer,size_type amount) |
|
public size_type get_total_bytes_written() const |
|
protected size_type written_bytes_ |
-
max_bytesThe parameter configures the maximum amount of bytes that this sink accepts. If this number is exceeded,
-
dataThe data to write to the sink -
sizeThe amount of bytes to write to the sink.
Returns: Returns the actual amount of bytes written to the sink.
-
bufferThe data to write to the sink. -
amountThe amount of bytes to write to the sink.
Returns: Returns the actual amount of bytes written to the sink.
Returns: Returns the total amount of bytes that were written using this particular sink instance.