(value []byte)
| 965 | } |
| 966 | |
| 967 | func getIndexVersion(value []byte) int { |
| 968 | if len(value) <= MaxOldEncodeValueLen { |
| 969 | return 0 |
| 970 | } |
| 971 | tailLen := int(value[0]) |
| 972 | if (tailLen == 0 || tailLen == 1) && value[1] == IndexVersionFlag { |
| 973 | return int(value[2]) |
| 974 | } |
| 975 | return 0 |
| 976 | } |
| 977 | |
| 978 | // DecodeIndexKVEx looks like DecodeIndexKV, the difference is that it tries to reduce allocations. |
| 979 | func DecodeIndexKVEx(key, value []byte, colsLen int, hdStatus HandleStatus, columns []rowcodec.ColInfo, buf []byte, preAlloc [][]byte) ([][]byte, error) { |
no outgoing calls
no test coverage detected