pub fn put_key(into: &mut [u8], id: u64, key: &[u8]) -> Result<usize>Expand description
Writes one key table entry and says how long it was.
The table is a run of id, klen, key, with no padding and no order worth
relying on, because the only thing that reads it reads all of it. A key is
tens of bytes and the alignment would cost more than the sequential read
saves.
ยงErrors
Code::Invalid if the key is too long or into is too short.