Documentation ¶
Index ¶
- func BinaryDecoding(buf *bytes.Buffer, v any) (err error)
- func BinaryEncoding(buf *bytes.Buffer, v any) (err error)
- func BinaryWrite(buf *bytes.Buffer, v any) (err error)
- func DecodePostings(buf []byte) (p *types.InvertedIndexValue, err error)
- func EncodePostings(postings *types.InvertedIndexValue) (buf []byte, err error)
- func GobWrite(v any) (buf *bytes.Buffer, err error)
- func VBDecode(bytestream []byte) []uint64
- func VBEncodeNumber(n uint32) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryDecoding ¶ added in v0.1.0
BinaryDecoding 二进制解码
func BinaryEncoding ¶ added in v0.1.0
BinaryEncoding 二进制编码
func BinaryWrite ¶
BinaryWrite 将所有的类型 转成byte buffer类型,易于存储// TODO change func BinaryWrite(v any) (buf *bytes.Buffer, err error) {
func DecodePostings ¶
func DecodePostings(buf []byte) (p *types.InvertedIndexValue, err error)
DecodePostings 解码 return *PostingsList postingslen err
func EncodePostings ¶
func EncodePostings(postings *types.InvertedIndexValue) (buf []byte, err error)
EncodePostings 编码
func VBEncodeNumber ¶ added in v0.1.0
VBEncodeNumber 将整数编码为VB编码的字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.