DecodeToBytes decodes raw byte slice to row data.
(outputOffset map[int64]int, handle kv.Handle, value []byte, cacheBytes []byte)
| 485 | |
| 486 | // DecodeToBytes decodes raw byte slice to row data. |
| 487 | func (decoder *BytesDecoder) DecodeToBytes(outputOffset map[int64]int, handle kv.Handle, value []byte, cacheBytes []byte) ([][]byte, error) { |
| 488 | return decoder.decodeToBytesInternal(outputOffset, handle, value, cacheBytes) |
| 489 | } |
| 490 | |
| 491 | func (*BytesDecoder) encodeOldDatum(tp byte, val []byte) []byte { |
| 492 | buf := make([]byte, 0, 1+binary.MaxVarintLen64+len(val)) |