pub fn image_write_value_bytes(buf: &mut Vec<u8>, value: &[u8]) -> Result<()>Expand description
Writes a length-prefixed value into a DbObject pickle image buffer using the
inner-buffer scheme (252 short cutoff, 32767 chunks for the long form). This
mirrors Buffer.write_bytes_with_length used by _pack_value
(reference impl/thin/packet.pyx) — NOT the 245-cutoff write_length.