24#ifndef MYSQL_ABI_HELPERS_PACKET_H 
   25#define MYSQL_ABI_HELPERS_PACKET_H 
   65template <
class Type_enum_t>
 
   72template <
class Type_enum_t>
 
   79template <
class Type_enum_t>
 
Ownership-agnostic array class, which is both trivial and standard-layout.
Definition: array_view.h:53
 
Class to help constructing a Packet, by pushing values one by one.
Definition: packet.h:80
 
Packet_t & m_packet
Definition: packet.h:170
 
void push_string_view(Type_enum_t type, const std::string &value)
Append a string field, sharing memory with the caller (std::string).
Definition: packet.h:153
 
void push_string_view(Type_enum_t type, char *value)
Append a string field, sharing memory with the caller (raw pointer to null-terminated string).
Definition: packet.h:142
 
void push_string_copy(Type_enum_t type, const std::string &value, PSI_memory_key key)
Append a string field, taking a copy of the parameter (std::string).
Definition: packet.h:132
 
void push_bool(Type_enum_t type, bool value)
Append a boolean field.
Definition: packet.h:160
 
std::size_t get_position()
Definition: packet.h:167
 
void push_int(Type_enum_t type, long long value)
Append an int field.
Definition: packet.h:94
 
void push_string_copy(Type_enum_t type, const char *value, std::size_t length, PSI_memory_key key)
Append a string field, taking a copy of the parameter (raw pointer and length).
Definition: packet.h:107
 
void push_string_copy(Type_enum_t type, const char *value, PSI_memory_key key)
Append a string field, taking a copy of the parameter (raw pointer to null-terminated string).
Definition: packet.h:121
 
std::size_t m_position
Definition: packet.h:171
 
Packet_builder(Packet_t &packet)
Construct a new Packet_builder that can be used to store data in the given Packet.
Definition: packet.h:88
 
Array_t m_data
Array data.
Definition: array_base.h:119
 
#define MY_WME
Definition: my_sys.h:133
 
unsigned int PSI_memory_key
Instrumented memory key.
Definition: psi_memory_bits.h:49
 
#define MYF(v)
Definition: my_inttypes.h:97
 
void * my_malloc(PSI_memory_key key, size_t size, int flags)
Allocates size bytes of memory.
Definition: my_memory.cc:57
 
Common header for many mysys elements.
 
void copy(Shards< COUNT > &dst, const Shards< COUNT > &src) noexcept
Copy the counters, overwrite destination.
Definition: ut0counter.h:354
 
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
 
ValueType value(const std::optional< ValueType > &v)
Definition: gtid.h:83
 
Definition: array_view.h:42
 
Performance schema instrumentation interface.
 
required string key
Definition: replication_asynchronous_connection_failover.proto:60
 
required string type
Definition: replication_group_member_actions.proto:34