Struct mariadb_sys::Binary_string
source · #[repr(C)]pub struct Binary_string {
pub Ptr: *mut c_char,
pub str_length: uint32,
pub Alloced_length: uint32,
pub extra_alloc: uint32,
pub alloced: bool,
pub thread_specific: bool,
}
Expand description
Storage for strings with both length and allocated length. Automatically grows on demand.
Fields§
§Ptr: *mut c_char
§str_length: uint32
§Alloced_length: uint32
§extra_alloc: uint32
§alloced: bool
§thread_specific: bool
Implementations§
source§impl Binary_string
impl Binary_string
pub unsafe fn strstr( &self, search: *const Binary_string, offset: uint32 ) -> c_int
pub unsafe fn strstr1( &self, search: *const c_char, search_length: uint32, offset: uint32 ) -> c_int
pub unsafe fn strrstr( &self, search: *const Binary_string, offset: uint32 ) -> c_int
pub unsafe fn qs_append(&mut self, str_: *const c_char, len: usize)
pub unsafe fn qs_append_hex(&mut self, str_: *const c_char, len: uint32)
pub unsafe fn qs_append_hex_uint32(&mut self, num: uint32)
pub unsafe fn qs_append1(&mut self, d: f64)
pub unsafe fn qs_append2(&mut self, d: *const f64)
pub unsafe fn qs_append3(&mut self, i: c_int)
pub unsafe fn qs_append4(&mut self, i: ulonglong)
pub unsafe fn set_hex(&mut self, num: ulonglong) -> bool
pub unsafe fn set_hex1(&mut self, str_: *const c_char, len: uint32) -> bool
pub unsafe fn set_fcvt(&mut self, num: f64, decimals: uint) -> bool
pub unsafe fn copy(&mut self) -> bool
pub unsafe fn copy1(&mut self, s: *const Binary_string) -> bool
pub unsafe fn copy2(&mut self, s: *const c_char, arg_length: usize) -> bool
pub unsafe fn copy_or_move( &mut self, s: *const c_char, arg_length: usize ) -> bool
pub unsafe fn copy_printable_hhhh( &mut self, to_cs: *const charset_info_st, from_cs: *const charset_info_st, from: *const c_char, from_length: usize ) -> bool
pub unsafe fn append_ulonglong(&mut self, val: ulonglong) -> bool
pub unsafe fn append_longlong(&mut self, val: longlong) -> bool
pub unsafe fn append(&mut self, file: *mut IO_CACHE, arg_length: uint32) -> bool
pub unsafe fn real_alloc(&mut self, arg_length: usize) -> bool
pub unsafe fn realloc_raw(&mut self, arg_length: usize) -> bool
pub unsafe fn shrink(&mut self, arg_length: usize)
pub unsafe fn fill(&mut self, max_length: usize, fill: c_char) -> bool
pub unsafe fn replace( &mut self, offset: uint32, arg_length: uint32, to: *const c_char, length: uint32 ) -> bool
pub unsafe fn reserve(&mut self, space_needed: usize, grow_by: usize) -> c_int
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Binary_string
impl !Send for Binary_string
impl !Sync for Binary_string
impl Unpin for Binary_string
impl UnwindSafe for Binary_string
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more