Trait mysql_common::io::BufMutExt[][src]

pub trait BufMutExt: BufMut {
    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

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

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

Writes a 3-bytes unsigned integer.

Writes a 3-bytes signed integer.

Writes a 6-bytes unsigned integer.

Writes a 7-bytes unsigned integer.

Writes a 7-bytes signed integer.

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

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

Implementors