예제 #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())
}