pub trait BinaryWriter {
    fn write_bytes_short(&mut self, data: &[u8]);
    fn encrypt_and_write(&mut self, key: &[u8], data: &[u8]);
    fn write_hex(&mut self, h: &str);
    fn write_int_lv_packet(&mut self, offset: usize, data: &[u8]);
    fn write_string(&mut self, v: &str);
    fn write_uni_packet(
        &mut self,
        command_name: &str,
        session_id: &[u8],
        extra_data: &[u8],
        body: &[u8]
    ); fn write_tlv_limited_size(&mut self, data: &[u8], limit: isize); }

Required Methods§

Implementors§