コード例 #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)
}