/// Acquire a mutable reference to the thread-local encoding buffers.
///
/// This function may not be called recursively.
Acquire a mutable reference to the thread-local encoding buffers.
This function may not be called recursively.
Acquire a mutable reference to the thread - local encoding buffers . This function may not be called recursively .
pub fn with_tls_coding_bufs<R>(f: impl FnOnce(&mut Vec<u8>, &mut Vec<zx::Handle>) -> R) -> R {
    CODING_BUF.with(|buf| {
        let mut buf = buf.borrow_mut();
        let (bytes, handles) = buf.split_mut();
        let res = f(bytes, handles);
        buf.clear();
        res
    })
}
pub fn with_tls_coding_bufs < R > ( f : impl FnOnce ( & mut Vec < u8 > , & mut Vec < zx :: Handle > ) -> R ) -> R { CODING_BUF . with ( | buf | { let mut buf = buf . borrow_mut ( ) ; let ( bytes , handles ) = buf . split_mut ( ) ; let res = f ( bytes , handles ) ; buf . clear ( ) ; res } ) }
Acquire a mutable reference to the thread-local encoding buffers.
Acquire a mutable reference to the thread - local encoding buffers .
f
impl FnOnce(&mut Vec<u8>, &mut Vec<zx::Handle>) -> R