26#ifndef ROUTER_SRC_HTTP_SRC_HTTP_BASE_DETAILS_OWNED_BUFFER_H_
27#define ROUTER_SRC_HTTP_SRC_HTTP_BASE_DETAILS_OWNED_BUFFER_H_
49 void *
data() const noexcept {
return ref_.data(); }
50 size_t size() const noexcept {
return ref_.size(); }
121 const auto bytes_to_copy = std::min(source_size,
space_left());
125 return bytes_to_copy;
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
Definition: owned_buffer.h:83
owned_buffer & operator+=(size_t n)
Definition: owned_buffer.h:106
owned_buffer(size_t n=0)
Definition: owned_buffer.h:85
const size_t buffer_size_
Definition: owned_buffer.h:130
uint8_t * data_movable_
Definition: owned_buffer.h:132
size_t space_left() const
Definition: owned_buffer.h:117
size_t data_size_
Definition: owned_buffer.h:133
owned_buffer(owned_buffer &&other)
Definition: owned_buffer.h:91
void * data() const noexcept
Definition: owned_buffer.h:98
size_t write(const uint8_t *source, size_t source_size)
Definition: owned_buffer.h:120
bool empty() const
Definition: owned_buffer.h:118
size_t size() const noexcept
Definition: owned_buffer.h:99
void reset()
Definition: owned_buffer.h:101
std::unique_ptr< uint8_t[]> buffer_
Definition: owned_buffer.h:129
Definition: owned_buffer.h:43
ref_buffer(T &ref)
Definition: owned_buffer.h:46
This & operator+=(size_t n)
Definition: owned_buffer.h:54
void * data() const noexcept
Definition: owned_buffer.h:49
ref_buffer(const ref_buffer &other)
Definition: owned_buffer.h:47
void reset()
Definition: owned_buffer.h:52
T & ref_
Definition: owned_buffer.h:64
size_t size() const noexcept
Definition: owned_buffer.h:50
Definition: owned_buffer.h:68
ref_buffers(T &ref)
Definition: owned_buffer.h:71
This & operator=(const This &t)
Definition: owned_buffer.h:77
auto begin() const
Definition: owned_buffer.h:74
auto end() const
Definition: owned_buffer.h:75
T * ref_
Definition: owned_buffer.h:80
ref_buffers(const ref_buffers &other)
Definition: owned_buffer.h:72
PT & ref(PT *tp)
Definition: tablespace_impl.cc:359
Definition: connection.h:56
static mysql_service_status_t get(THD **thd) noexcept
Definition: mysql_current_thread_reader_all_empty.cc:31
Definition: gcs_xcom_synode.h:64
repeated Source source
Definition: replication_asynchronous_connection_failover.proto:42
int n
Definition: xcom_base.cc:509