23#ifndef MYSQL_ABI_HELPERS_PACKET_H
24#define MYSQL_ABI_HELPERS_PACKET_H
64template <
class Type_enum_t>
71template <
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:72
Packet_t & m_packet
Definition: packet.h:162
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:145
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:134
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:124
void push_bool(Type_enum_t type, bool value)
Append a boolean field.
Definition: packet.h:152
std::size_t get_position()
Definition: packet.h:159
void push_int(Type_enum_t type, long long value)
Append an int field.
Definition: packet.h:86
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:99
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:113
std::size_t m_position
Definition: packet.h:163
Packet_builder(Packet_t &packet)
Construct a new Packet_builder that can be used to store data in the given Packet.
Definition: packet.h:80
Array_t m_data
Array data.
Definition: array_base.h:118
#define MY_WME
Definition: my_sys.h:130
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
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