mysql_common::io

Trait BufMutExt

Source
pub trait BufMutExt: BufMut {
    // Provided methods
    fn put_lenenc_int(&mut self, n: u64) { ... }
    fn put_lenenc_str(&mut self, s: &[u8]) { ... }
    fn put_u24_le(&mut self, x: u32) { ... }
    fn put_i24_le(&mut self, x: i32) { ... }
    fn put_u48_le(&mut self, x: u64) { ... }
    fn put_u56_le(&mut self, x: u64) { ... }
    fn put_i56_le(&mut self, x: i64) { ... }
    fn put_u8_str(&mut self, s: &[u8]) { ... }
    fn put_u32_str(&mut self, s: &[u8]) { ... }
}

Provided Methods§

Source

fn put_lenenc_int(&mut self, n: u64)

Writes an unsigned integer to self as MySql length-encoded integer.

Source

fn put_lenenc_str(&mut self, s: &[u8])

Writes a slice to self as MySql length-encoded string.

Source

fn put_u24_le(&mut self, x: u32)

Writes a 3-bytes unsigned integer.

Source

fn put_i24_le(&mut self, x: i32)

Writes a 3-bytes signed integer.

Source

fn put_u48_le(&mut self, x: u64)

Writes a 6-bytes unsigned integer.

Source

fn put_u56_le(&mut self, x: u64)

Writes a 7-bytes unsigned integer.

Source

fn put_i56_le(&mut self, x: i64)

Writes a 7-bytes signed integer.

Source

fn put_u8_str(&mut self, s: &[u8])

Writes a string with u8 length prefix. Truncates, if the length is greater that u8::MAX.

Source

fn put_u32_str(&mut self, s: &[u8])

Writes a string with u32 length prefix. Truncates, if the length is greater that u32::MAX.

Implementors§

Source§

impl<T: BufMut> BufMutExt for T