// Base class for all SCTP chunks class Chunk { public:
Chunk() {} virtual ~Chunk() = default;
// Chunks can contain data payloads that shouldn't be copied unnecessarily.
Chunk(Chunk&& other) = default;
Chunk& operator=(Chunk&& other) = default;
Chunk(const Chunk&) = delete;
Chunk& operator=(const Chunk&) = delete;
// Serializes the chunk to `out`, growing it as necessary. virtualvoid SerializeTo(std::vector<uint8_t>& out) const = 0;
// Returns a human readable description of this chunk and its parameters. virtual std::string ToString() const = 0;
};
// Introspects the chunk in `data` and returns a human readable textual // representation of it, to be used in debugging.
std::string DebugConvertChunkToString(std::span<const uint8_t> data);
struct ChunkConfig { static constexpr int kTypeSizeInBytes = 1;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.