Example #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)
}
Example #2
0
func (t *MemberWithMeta) Unmarshal(r *wipro.Reader) {
	t.MemberID = r.ReadString()
	t.MemberMetadata = r.ReadBytes()
}
Example #3
0
func (t *ProtocolMetadata) Unmarshal(r *wipro.Reader) {
	t.Version = r.ReadInt16()
	t.Subscription.Unmarshal(r)
	t.UserData = r.ReadBytes()
}
Example #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()
}