| /// Takes an `Option<&mut Vec<T>>` style buffer and gets its pointer. |
| Some(b) => b.as_ptr() as _, |
| /// Takes an `Option<&mut Vec<T>>` style buffer and gets its allocated length. |
| Some(b) => b.capacity() as _, |
| /// Takes an `Option<&mut Vec<T>>` style buffer and shrinks it. |
| macro_rules! map_reserve { |
| ($buffer:expr, $size:expr) => { |
| Some(ref mut b) => b.reserve_exact($size - b.len()), |
| /// Takes an `Option<&mut Vec<T>>` style buffer and shrinks it. |
| ($buffer:expr, $min:expr) => { |
| Some(ref mut b) => unsafe { b.set_len($min) }, |