class http_read_sink - 5cript/attender GitHub Wiki

class http_read_sink

Summary

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_

Members


public http_read_sink()

Parameters

  • max_bytes The parameter configures the maximum amount of bytes that this sink accepts. If this number is exceeded,

public virtual ~http_read_sink() = default


public size_type write(const char * data,size_type size)

Parameters

  • data The data to write to the sink

  • size The amount of bytes to write to the sink.

Returns: Returns the actual amount of bytes written to the sink.


public size_type write(std::vector< char > const & buffer,size_type amount)

Parameters

  • buffer The data to write to the sink.

  • amount The amount of bytes to write to the sink.

Returns: Returns the actual amount of bytes written to the sink.


public size_type get_total_bytes_written() const

Returns: Returns the total amount of bytes that were written using this particular sink instance.


protected size_type written_bytes_

⚠️ **GitHub.com Fallback** ⚠️