Пример #1
0
func (t *OffsetsInPartition) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.Partition)
	t.ErrorCode.Marshal(w)
	w.WriteInt32(int32(len(t.Offsets)))
	for i := range t.Offsets {
		w.WriteInt64(t.Offsets[i])
	}
}
Пример #2
0
func (t *OffsetCommitRequestV2) Marshal(w *wipro.Writer) {
	w.WriteString(t.ConsumerGroup)
	w.WriteInt32(t.ConsumerGroupGenerationID)
	w.WriteString(t.ConsumerID)
	w.WriteInt64(t.RetentionTime)
	w.WriteInt32(int32(len(t.OffsetCommitInTopicV2s)))
	for i := range t.OffsetCommitInTopicV2s {
		t.OffsetCommitInTopicV2s[i].Marshal(w)
	}
}
Пример #3
0
func (t *OffsetMetadataInPartition) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.Partition)
	w.WriteInt64(t.Offset)
	w.WriteString(t.Metadata)
	t.ErrorCode.Marshal(w)
}
Пример #4
0
func (t *OffsetMessage) Marshal(w *wipro.Writer) {
	w.WriteInt64(t.Offset)
	t.SizedMessage.Marshal(w)
}
Пример #5
0
func (t *OffsetCommitInPartitionV2) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.Partition)
	w.WriteInt64(t.Offset)
	w.WriteString(t.Metadata)
}
Пример #6
0
func (t *TimeInPartition) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.Partition)
	w.WriteInt64(t.Time)
	w.WriteInt32(t.MaxNumberOfOffsets)
}
Пример #7
0
func (t *FetchMessageSetInPartition) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.Partition)
	t.ErrorCode.Marshal(w)
	w.WriteInt64(t.HighwaterMarkOffset)
	t.MessageSet.Marshal(w)
}
Пример #8
0
func (t *FetchOffsetInPartition) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.Partition)
	w.WriteInt64(t.FetchOffset)
	w.WriteInt32(t.MaxBytes)
}
Пример #9
0
func (t *OffsetInPartition) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.Partition)
	t.ErrorCode.Marshal(w)
	w.WriteInt64(t.Offset)
}