188 [[maybe_unused]] [[nodiscard]]
static constexpr
bool is_supported(
Type type) noexcept;
200 template <
typename T>
210 template <
Type TypeT, typename T>
211 [[nodiscard]] static constexpr
SchemaType get_schema_type() noexcept;
219 template <typename T>
220 [[nodiscard]] static constexpr
SchemaType get_schema_type() noexcept;
234 template <
Type TypeT, typename T>
243 template <typename T>
260 template <
Type TypeT, typename T>
270 template <typename T>
299 template <
Type TypeT, typename T>
314 template <typename T>
341 template <
Type TypeT, typename T, typename LoanCallbackT>
343 LoanCallbackT&& loan);
364 template <
Type TypeT, typename T>
380 template <typename T>
399 template <typename SrcT, typename DesT>
400 static
bool convert(const SrcT& src, DesT& des);
414 template <typename T>
415 [[nodiscard]] static constexpr auto&
deref(const T& t) noexcept;
423 template <typename T>
424 [[nodiscard]] static constexpr
bool is_bytes_type() noexcept;
435 template <typename T>
450 template <typename T>
451 [[nodiscard]] static constexpr
bool is_cdr_type() noexcept;
463 template <typename T>
464 [[nodiscard]] static constexpr
bool is_proto_type() noexcept;
476 template <typename T>
489 template <typename T>
502 template <typename T>
511 template <typename T>
524 template <typename T>
537 template <typename T>
546 template <typename T>
565 template <typename T>
566 [[nodiscard]] static constexpr
bool is_chars_type() noexcept;
580 template <typename T>
594 template <typename T>
607 template <typename T>
614 #include "./internal/serializer-inl.h"
Canonical 128-byte binary payload carrier with inline storage, multi-mode ownership and LZAV compress...
Fixed-size 128-byte buffer holder with SBO, five ownership modes and integrated codecs.
Definition: bytes.h:120
Compile-time codec detection and dispatch for VLink message payloads.
constexpr bool is_proto_ptr_type() noexcept
Reports whether T is a raw pointer to a Protobuf-like message.
Definition: serializer-inl.h:887
constexpr bool is_dynamic_type() noexcept
Reports whether T is a VLink dynamic data type.
Definition: serializer-inl.h:852
constexpr bool is_chars_type() noexcept
Reports whether T is a pointer or array of non-volatile char.
Definition: serializer-inl.h:943
bool deserialize(const Bytes &src, T &des, [[maybe_unused]] TransportType transport)
Definition: serializer-inl.h:642
constexpr Type get_type_of() noexcept
Resolves the codec Type for T at compile time.
Definition: serializer-inl.h:107
Type
Identifies the codec to use for a given C++ message type.
Definition: serializer.h:156
@ kStandardPtrType
Pointer to trivial standard-layout struct (POD pointer).
Definition: serializer.h:172
@ kCustomType
User-defined codec via operator>>/<<.
Definition: serializer.h:160
@ kDynamicType
VLink dynamic typed data.
Definition: serializer.h:159
@ kFlatTableType
FlatBuffers NativeTable (object API).
Definition: serializer.h:165
@ kCharsType
C string serialisation; deserialise as std::string.
Definition: serializer.h:169
@ kUnknownType
Unsupported type; is_supported() returns false.
Definition: serializer.h:157
@ kBytesType
Bytes – raw byte pass-through.
Definition: serializer.h:158
@ kProtoPtrType
Protobuf-like raw pointer; caller-owned.
Definition: serializer.h:164
@ kStandardType
Trivial standard-layout struct (POD value).
Definition: serializer.h:171
@ kStringType
std::string payload bytes; no text-encoding validation.
Definition: serializer.h:168
@ kFlatBuilderType
FlatBuffers builder (fbb_ + Finish()).
Definition: serializer.h:167
@ kSomeipType
Macro-declared SOME/IP structure via operator>>/<<.
Definition: serializer.h:161
@ kStreamType
Stream-serialisable via std::stringstream.
Definition: serializer.h:170
@ kProtoType
Protobuf-like value.
Definition: serializer.h:163
@ kCdrType
FastDDS CDR via serialize(Cdr&) / deserialize(Cdr&).
Definition: serializer.h:162
@ kFlatPtrType
Pointer to flatbuffers::Table (zero-copy view).
Definition: serializer.h:166
constexpr auto & deref(const T &t) noexcept
Dereferences a value, unwrapping std::shared_ptr when present.
Definition: serializer-inl.h:838
constexpr bool is_supported(Type type) noexcept
Reports whether type identifies a usable codec.
Definition: serializer-inl.h:90
constexpr bool is_custom_type() noexcept
Reports whether T provides a custom operator>>/<< codec.
Definition: serializer-inl.h:931
constexpr bool is_someip_type() noexcept
Reports whether T is a macro-declared SOME/IP structure.
Definition: serializer-inl.h:925
size_t get_serialized_size(const T &src) noexcept
Returns a serialised-size hint for src with explicit codec tag.
Definition: serializer-inl.h:271
bool serialize_to_transport(const T &src, Bytes &des, TransportType transport, bool use_loan, LoanCallbackT &&loan)
Serialises into transport-provided storage when available.
Definition: serializer-inl.h:587
bool convert(const SrcT &src, DesT &des)
Converts between two types where at least one side is Bytes.
Definition: serializer-inl.h:824
constexpr bool is_cdr_type() noexcept
Reports whether T is a FastDDS CDR-serialisable type.
Definition: serializer-inl.h:858
constexpr bool is_proto_type() noexcept
Reports whether T is a Protobuf-like message value type.
Definition: serializer-inl.h:877
std::string get_serialized_type() noexcept
Returns the serialised type-name string for T with explicit codec tag.
Definition: serializer-inl.h:198
bool serialize(const T &src, Bytes &des, [[maybe_unused]] TransportType transport, [[maybe_unused]] uint8_t offset)
Definition: serializer-inl.h:355
constexpr bool is_flat_ptr_type() noexcept
Reports whether T is a raw pointer to a flatbuffers::Table.
Definition: serializer-inl.h:916
constexpr bool is_flat_builder_type() noexcept
Reports whether T is a FlatBuffers builder type.
Definition: serializer-inl.h:907
constexpr bool is_standard_ptr_type() noexcept
Reports whether T is a pointer to a trivial standard-layout type.
Definition: serializer-inl.h:964
constexpr bool is_standard_type() noexcept
Reports whether T is a trivial standard-layout value (POD).
Definition: serializer-inl.h:958
constexpr bool is_flat_table_type() noexcept
Reports whether T is a FlatBuffers NativeTable type.
Definition: serializer-inl.h:897
constexpr bool is_string_type() noexcept
Reports whether T is std::string after unwrapping shared_ptr.
Definition: serializer-inl.h:937
constexpr bool is_bytes_type() noexcept
Reports whether T is exactly Bytes.
Definition: serializer-inl.h:847
constexpr bool is_stream_type() noexcept
Reports whether T supports bidirectional std::stringstream streaming.
Definition: serializer-inl.h:952
SchemaType
Coarse runtime schema family used by discovery, bag metadata and proxy routing.
Definition: types.h:203
TransportType
Enumeration of every transport backend recognised by VLink.
Definition: types.h:126
Core enumerations and small value types shared by the entire VLink implementation layer.