Exemplo n.º 1
0
func (t *Member) Unmarshal(r *wipro.Reader) {
	t.MemberID = r.ReadString()
	t.ClientID = r.ReadString()
	t.ClientHost = r.ReadString()
	t.MemberMetadata = r.ReadBytes()
	t.MemberAssignment.Unmarshal(r)
}
Exemplo n.º 2
0
func (t *MemberWithMeta) Unmarshal(r *wipro.Reader) {
	t.MemberID = r.ReadString()
	t.MemberMetadata = r.ReadBytes()
}
Exemplo n.º 3
0
func (t *ProtocolMetadata) Unmarshal(r *wipro.Reader) {
	t.Version = r.ReadInt16()
	t.Subscription.Unmarshal(r)
	t.UserData = r.ReadBytes()
}
Exemplo n.º 4
0
func (t *Message) Unmarshal(r *wipro.Reader) {
	t.MagicByte = r.ReadInt8()
	t.Attributes = r.ReadInt8()
	t.Key = r.ReadBytes()
	t.Value = r.ReadBytes()
}