Searched refs:c_slice (Results 1 – 12 of 12) sorted by relevance
30 let c_slice = unsafe { CStr::from_ptr(msg).to_bytes() }; in config_log() localVariable33 let s = String::from_utf8_lossy(c_slice); in config_log()75 let c_slice = CStr::from_ptr(z_sql).to_bytes(); in trace() localVariable76 let s = String::from_utf8_lossy(c_slice); in trace()103 let c_slice = CStr::from_ptr(z_sql).to_bytes(); in profile() localVariable104 let s = String::from_utf8_lossy(c_slice); in profile()
60 let c_slice = slice::from_raw_parts(arg3 as *const u8, arg2 as usize); in create_collation() localVariable61 String::from_utf8_lossy(c_slice) in create_collation()64 let c_slice = slice::from_raw_parts(arg5 as *const u8, arg4 as usize); in create_collation() localVariable65 String::from_utf8_lossy(c_slice) in create_collation()122 let c_slice = CStr::from_ptr(arg3).to_bytes(); in collation_needed() localVariable123 str::from_utf8(c_slice).expect("illegal coallation sequence name") in collation_needed()
194 let c_slice = CStr::from_ptr(db_str).to_bytes(); in update_hook() localVariable195 str::from_utf8(c_slice) in update_hook()198 let c_slice = CStr::from_ptr(tbl_str).to_bytes(); in update_hook() localVariable199 str::from_utf8(c_slice) in update_hook()
71 let c_slice = CStr::from_ptr(tbl_str).to_bytes(); in table_filter() localVariable72 str::from_utf8(c_slice) in table_filter()675 let c_slice = CStr::from_ptr(tbl_str).to_bytes(); in call_filter() localVariable676 str::from_utf8(c_slice) in call_filter()
227 let c_slice = CStr::from_ptr(errmsg).to_bytes(); in errmsg_to_string() localVariable228 String::from_utf8_lossy(c_slice).into_owned() in errmsg_to_string()
124 grpc_slice c_slice = spp.c_slice(); in TEST_F() local125 EXPECT_EQ(GRPC_SLICE_START_PTR(s), GRPC_SLICE_START_PTR(c_slice)); in TEST_F()126 EXPECT_EQ(GRPC_SLICE_END_PTR(s), GRPC_SLICE_END_PTR(c_slice)); in TEST_F()127 grpc_slice_unref(c_slice); in TEST_F()
77 fn parameter(c_slice: &[u8]) -> Result<(&str, &str)> { in parameter()78 let arg = str::from_utf8(c_slice)?.trim(); in parameter()124 for c_slice in args { in connect()125 let (param, value) = CSVTab::parameter(c_slice)?; in connect()
923 let c_slice = CStr::from_ptr(idx_str).to_bytes(); in rust_filter() localVariable924 Some(str::from_utf8_unchecked(c_slice)) in rust_filter()
111 grpc_slice c_slice() const { in c_slice() function
110 grpc_slice c_slice() const { in c_slice() function
72 c_slices[i] = slices[i].c_slice();