未验证 提交 7b14b0e6 编写于 作者: X XuanYang-cn 提交者: GitHub

[skip ci]Add comment on readBinary (#9355)

Signed-off-by: NYang Xuan <xuan.yang@zilliz.com>
上级 65a76b9b
......@@ -662,6 +662,9 @@ func (ibNode *insertBufferNode) bufferInsertMsg(msg *msgstream.InsertMsg, endPos
return nil
}
// readBinary read data in bytes and write it into receiver.
// The receiver can be any type in int8, int16, int32, int64, float32, float64 and bool
// readBinary uses LittleEndian ByteOrder.
func readBinary(data []byte, receiver interface{}, dataType schemapb.DataType) {
buf := bytes.NewReader(data)
err := binary.Read(buf, binary.LittleEndian, receiver)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册