示例#1
0
func (t *Request) Unmarshal(r *wipro.Reader) {
	t.APIKey = r.ReadInt16()
	t.APIVersion = r.ReadInt16()
	t.CorrelationID = r.ReadInt32()
	t.ClientID = r.ReadString()
	t.RequestMessage.Unmarshal(r)
}
示例#2
0
func (t *ProduceRequest) Unmarshal(r *wipro.Reader) {
	t.RequiredAcks = r.ReadInt16()
	t.Timeout = r.ReadInt32()
	t.MessageSetInTopics = make([]MessageSetInTopic, int(r.ReadInt32()))
	for i := range t.MessageSetInTopics {
		t.MessageSetInTopics[i].Unmarshal(r)
	}
}
示例#3
0
func (t *MemberAssignment) Unmarshal(r *wipro.Reader) {
	t.Version = r.ReadInt16()
	t.PartitionAssignments.Unmarshal(r)
}
示例#4
0
func (t *ProtocolMetadata) Unmarshal(r *wipro.Reader) {
	t.Version = r.ReadInt16()
	t.Subscription.Unmarshal(r)
	t.UserData = r.ReadBytes()
}
示例#5
0
func (t *ErrorCode) Unmarshal(r *wipro.Reader) {
	(*t) = ErrorCode(r.ReadInt16())
}