Function tidb_query_datatype::codec::datum::encode [−][src]
pub fn encode(
ctx: &mut EvalContext,
values: &[Datum],
comparable: bool
) -> Result<Vec<u8>>
encode
encodes a datum slice into a buffer.
Uses comparable to encode or not to encode a memory comparable buffer.