pub fn encode(ops: &[Self]) -> Vec<u8> {
        let mut buf = Vec::new();
        Self::write_slice(ops, &mut buf);
        buf
    }
/// Encode a slice of operations into a byte stream.
Encode a slice of operations into a byte stream.
Encode a slice of operations into a byte stream .
pub fn encode(ops: &[Self]) -> Vec<u8> {
        let mut buf = Vec::new();
        Self::write_slice(ops, &mut buf);
        buf
    }
pub fn encode ( ops : & [ Self ] ) -> Vec < u8 > { let mut buf = Vec :: new ( ) ; Self :: write_slice ( ops , & mut buf ) ; buf }
Encode a slice of operations into a byte stream.
Encode a slice of operations into a byte stream .
ops
&[Self]
ops
&[Self]