Home
last modified time | relevance | path

Searched refs:c_slice (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/rusqlite/src/
Dtrace.rs30 let c_slice = unsafe { CStr::from_ptr(msg).to_bytes() }; in config_log() localVariable
33 let s = String::from_utf8_lossy(c_slice); in config_log()
75 let c_slice = CStr::from_ptr(z_sql).to_bytes(); in trace() localVariable
76 let s = String::from_utf8_lossy(c_slice); in trace()
103 let c_slice = CStr::from_ptr(z_sql).to_bytes(); in profile() localVariable
104 let s = String::from_utf8_lossy(c_slice); in profile()
Dcollation.rs60 let c_slice = slice::from_raw_parts(arg3 as *const u8, arg2 as usize); in create_collation() localVariable
61 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() localVariable
65 String::from_utf8_lossy(c_slice) in create_collation()
122 let c_slice = CStr::from_ptr(arg3).to_bytes(); in collation_needed() localVariable
123 str::from_utf8(c_slice).expect("illegal coallation sequence name") in collation_needed()
Dhooks.rs194 let c_slice = CStr::from_ptr(db_str).to_bytes(); in update_hook() localVariable
195 str::from_utf8(c_slice) in update_hook()
198 let c_slice = CStr::from_ptr(tbl_str).to_bytes(); in update_hook() localVariable
199 str::from_utf8(c_slice) in update_hook()
Dsession.rs71 let c_slice = CStr::from_ptr(tbl_str).to_bytes(); in table_filter() localVariable
72 str::from_utf8(c_slice) in table_filter()
675 let c_slice = CStr::from_ptr(tbl_str).to_bytes(); in call_filter() localVariable
676 str::from_utf8(c_slice) in call_filter()
Dlib.rs227 let c_slice = CStr::from_ptr(errmsg).to_bytes(); in errmsg_to_string() localVariable
228 String::from_utf8_lossy(c_slice).into_owned() in errmsg_to_string()
/external/grpc-grpc/test/cpp/util/
Dslice_test.cc124 grpc_slice c_slice = spp.c_slice(); in TEST_F() local
125 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()
/external/rust/crates/rusqlite/src/vtab/
Dcsvtab.rs77 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()
Dmod.rs923 let c_slice = CStr::from_ptr(idx_str).to_bytes(); in rust_filter() localVariable
924 Some(str::from_utf8_unchecked(c_slice)) in rust_filter()
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/impl/codegen/
Dslice.h111 grpc_slice c_slice() const { in c_slice() function
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/impl/codegen/
Dslice.h111 grpc_slice c_slice() const { in c_slice() function
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dslice.h110 grpc_slice c_slice() const { in c_slice() function
/external/grpc-grpc/test/cpp/cocoapods/generic/
Dgeneric.mm72 c_slices[i] = slices[i].c_slice();