26#ifndef ROUTER_SRC_HTTP_SRC_HTTP_BASE_DETAILS_OWNED_BUFFER_H_
27#define ROUTER_SRC_HTTP_SRC_HTTP_BASE_DETAILS_OWNED_BUFFER_H_
48 void *
data() const noexcept {
return ref_.data(); }
49 size_t size() const noexcept {
return ref_.size(); }
120 const auto bytes_to_copy = std::min(source_size,
space_left());
124 return bytes_to_copy;
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
Definition: owned_buffer.h:82
owned_buffer & operator+=(size_t n)
Definition: owned_buffer.h:105
owned_buffer(size_t n=0)
Definition: owned_buffer.h:84
const size_t buffer_size_
Definition: owned_buffer.h:129
uint8_t * data_movable_
Definition: owned_buffer.h:131
size_t space_left() const
Definition: owned_buffer.h:116
size_t data_size_
Definition: owned_buffer.h:132
owned_buffer(owned_buffer &&other)
Definition: owned_buffer.h:90
void * data() const noexcept
Definition: owned_buffer.h:97
size_t write(const uint8_t *source, size_t source_size)
Definition: owned_buffer.h:119
bool empty() const
Definition: owned_buffer.h:117
size_t size() const noexcept
Definition: owned_buffer.h:98
void reset()
Definition: owned_buffer.h:100
std::unique_ptr< uint8_t[]> buffer_
Definition: owned_buffer.h:128
Definition: owned_buffer.h:42
ref_buffer(T &ref)
Definition: owned_buffer.h:45
This & operator+=(size_t n)
Definition: owned_buffer.h:53
void * data() const noexcept
Definition: owned_buffer.h:48
ref_buffer(const ref_buffer &other)
Definition: owned_buffer.h:46
void reset()
Definition: owned_buffer.h:51
T & ref_
Definition: owned_buffer.h:63
size_t size() const noexcept
Definition: owned_buffer.h:49
Definition: owned_buffer.h:67
ref_buffers(T &ref)
Definition: owned_buffer.h:70
This & operator=(const This &t)
Definition: owned_buffer.h:76
auto begin() const
Definition: owned_buffer.h:73
auto end() const
Definition: owned_buffer.h:74
T * ref_
Definition: owned_buffer.h:79
ref_buffers(const ref_buffers &other)
Definition: owned_buffer.h:71
PT & ref(PT *tp)
Definition: tablespace_impl.cc:359
Definition: connection.h:56
void get(PSI_field *, PSI_longlong *) noexcept
Definition: pfs_plugin_column_bigint_v1_all_empty.cc:32
Definition: gcs_xcom_synode.h:64
repeated Source source
Definition: replication_asynchronous_connection_failover.proto:42
int n
Definition: xcom_base.cc:509