Skip to content

Commit

Permalink
util: add comments to describe fields of RowData
Browse files Browse the repository at this point in the history
Signed-off-by: zyguan <zhongyangguan@gmail.com>
  • Loading branch information
zyguan committed Apr 18, 2023
1 parent 6e8fdf8 commit 7cd304d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/rowcodec/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ func (c ColData) Encode(buf []byte) ([]byte, error) {

// RowData is a list of ColData for row checksum calculation.
type RowData struct {
// Cols is a list of ColData which is expected to be sorted by id before calling Encode/Checksum.
Cols []ColData
// Data stores the result of Encode. However, it mostly acts as a buffer for encoding columns on checksum
// calculation.
Data []byte
}

Expand Down

0 comments on commit 7cd304d

Please sign in to comment.