示例#1
0
func (t *Member) Marshal(w *wipro.Writer) {
	w.WriteString(t.MemberID)
	w.WriteString(t.ClientID)
	w.WriteString(t.ClientHost)
	w.WriteBytes(t.MemberMetadata)
	t.MemberAssignment.Marshal(w)
}
示例#2
0
func (t *MemberWithMeta) Marshal(w *wipro.Writer) {
	w.WriteString(t.MemberID)
	w.WriteBytes(t.MemberMetadata)
}
示例#3
0
func (t *ProtocolMetadata) Marshal(w *wipro.Writer) {
	w.WriteInt16(t.Version)
	t.Subscription.Marshal(w)
	w.WriteBytes(t.UserData)
}
示例#4
0
func (t *Message) Marshal(w *wipro.Writer) {
	w.WriteInt8(t.MagicByte)
	w.WriteInt8(t.Attributes)
	w.WriteBytes(t.Key)
	w.WriteBytes(t.Value)
}