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§
Sourcefn put_lenenc_int(&mut self, n: u64)
fn put_lenenc_int(&mut self, n: u64)
Writes an unsigned integer to self as MySql length-encoded integer.
Sourcefn put_lenenc_str(&mut self, s: &[u8])
fn put_lenenc_str(&mut self, s: &[u8])
Writes a slice to self as MySql length-encoded string.
Sourcefn put_u24_le(&mut self, x: u32)
fn put_u24_le(&mut self, x: u32)
Writes a 3-bytes unsigned integer.
Sourcefn put_i24_le(&mut self, x: i32)
fn put_i24_le(&mut self, x: i32)
Writes a 3-bytes signed integer.
Sourcefn put_u48_le(&mut self, x: u64)
fn put_u48_le(&mut self, x: u64)
Writes a 6-bytes unsigned integer.
Sourcefn put_u56_le(&mut self, x: u64)
fn put_u56_le(&mut self, x: u64)
Writes a 7-bytes unsigned integer.
Sourcefn put_i56_le(&mut self, x: i64)
fn put_i56_le(&mut self, x: i64)
Writes a 7-bytes signed integer.
Sourcefn put_u8_str(&mut self, s: &[u8])
fn put_u8_str(&mut self, s: &[u8])
Writes a string with u8 length prefix. Truncates, if the length is greater that u8::MAX
.
Sourcefn put_u32_str(&mut self, s: &[u8])
fn put_u32_str(&mut self, s: &[u8])
Writes a string with u32 length prefix. Truncates, if the length is greater that u32::MAX
.