vibe-mqtt ~master (2021-01-11T08:51:05Z)
Dub
Repo
Serializer
mqttd
serialization
Undocumented in source.
@
safe
struct
Serializer (
R
)
if
(
canSerializeTo
!(
R
)
) {
this
(R output);
void
put
(ubyte val);
void
put
(ubyte[] val);
static if
(
__traits(hasMember, R, "data")
)
auto
data
[@property getter];
static if
(
__traits(hasMember, R, "clear")
)
void
clear
();
void
serialize
(T item);
Serializer
write
(T val);
}
Constructors
this
this
(R output)
Undocumented in source.
Members
Functions
clear
void
clear
()
Undocumented in source. Be warned that the author may not have intended to support it.
put
void
put
(ubyte val)
Undocumented in source. Be warned that the author may not have intended to support it.
put
void
put
(ubyte[] val)
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
void
serialize
(T item)
Serialize given Mqtt packet
write
Serializer
write
(T val)
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
data
auto
data
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
mqttd
serialization
functions
deserializer
itemLength
serialize
serializer
validate
mixin templates
processMembersTemplate
structs
Deserializer
Serializer
templates
deserialize