Home
last modified time | relevance | path

Searched refs:owned (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/third_party/rust/crates/io-lifetimes/src/
Dimpls_mio.rs43 fn from(owned: mio::net::TcpStream) -> Self { in from()
44 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
59 fn from(owned: mio::net::TcpStream) -> Self { in from()
60 unsafe { Self::from_raw_socket(owned.into_raw_socket()) } in from()
67 fn from_fd(owned: OwnedFd) -> Self { in from_fd()
68 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
75 fn from(owned: OwnedFd) -> Self { in from()
76 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
83 fn from_socket(owned: OwnedSocket) -> Self { in from_socket()
84 unsafe { Self::from_raw_socket(owned.into_raw_socket()) } in from_socket()
[all …]
Dimpls_async_std.rs50 fn from(owned: async_std::fs::File) -> Self { in from()
51 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
66 fn from(owned: async_std::fs::File) -> Self { in from()
67 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from()
74 fn from_fd(owned: OwnedFd) -> Self { in from_fd()
75 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
82 fn from(owned: OwnedFd) -> Self { in from()
83 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
90 fn from_handle(owned: OwnedHandle) -> Self { in from_handle()
91 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from_handle()
[all …]
Dimpls_std.rs95 fn from_fd(owned: OwnedFd) -> Self { in from_fd()
96 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
103 fn from_handle(owned: OwnedHandle) -> Self { in from_handle()
104 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from_handle()
111 fn from_socket(owned: OwnedSocket) -> Self { in from_socket()
112 unsafe { Self::from_raw_socket(owned.into_raw_socket()) } in from_socket()
119 fn from_handle(owned: OwnedHandle) -> Self { in from_handle()
120 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from_handle()
127 fn from(owned: OwnedHandle) -> Self { in from()
128 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from()
[all …]
Dimpls_os_pipe.rs43 fn from(owned: os_pipe::PipeReader) -> Self { in from()
44 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
59 fn from(owned: os_pipe::PipeReader) -> Self { in from()
60 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from()
67 fn from_fd(owned: OwnedFd) -> Self { in from_fd()
68 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
75 fn from(owned: OwnedFd) -> Self { in from()
76 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
83 fn from_handle(owned: OwnedHandle) -> Self { in from_handle()
84 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from_handle()
[all …]
Dportability.rs379 fn from_filelike(owned: OwnedFilelike) -> Self; in from_filelike()
395 fn from_into_filelike<Owned: IntoFilelike>(owned: Owned) -> Self; in from_into_filelike()
401 fn from_filelike(owned: OwnedFilelike) -> Self { in from_filelike()
402 Self::from(owned) in from_filelike()
406 fn from_into_filelike<Owned: IntoFilelike>(owned: Owned) -> Self { in from_into_filelike()
407 Self::from_filelike(owned.into_filelike()) in from_into_filelike()
433 fn from_filelike(owned: OwnedFilelike) -> Self; in from_filelike()
449 fn from_into_filelike<Owned: IntoFilelike>(owned: Owned) -> Self; in from_into_filelike()
455 fn from_filelike(owned: OwnedFilelike) -> Self { in from_filelike()
456 Self::from(owned) in from_filelike()
[all …]
Dimpls_socket2.rs43 fn from(owned: socket2::Socket) -> Self { in from()
44 unsafe { OwnedFd::from_raw_fd(owned.into_raw_fd()) } in from()
59 fn from(owned: socket2::Socket) -> Self { in from()
60 unsafe { Self::from_raw_socket(owned.into_raw_socket()) } in from()
67 fn from_fd(owned: OwnedFd) -> Self { in from_fd()
68 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
75 fn from(owned: OwnedFd) -> Self { in from()
76 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
83 fn from_socket(owned: OwnedSocket) -> Self { in from_socket()
84 unsafe { Self::from_raw_socket(owned.into_raw_socket()) } in from_socket()
[all …]
Dimpls_tokio.rs35 fn from_fd(owned: OwnedFd) -> Self { in from_fd()
36 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from_fd()
43 fn from(owned: OwnedFd) -> Self { in from()
44 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
51 fn from_handle(owned: OwnedHandle) -> Self { in from_handle()
52 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from_handle()
59 fn from(owned: OwnedHandle) -> Self { in from()
60 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from()
Dimpls_fs_err.rs43 fn from(owned: fs_err::File) -> Self { in from()
44 unsafe { Self::from_raw_fd(owned.into_raw_fd()) } in from()
59 fn from(owned: fs_err::File) -> Self { in from()
60 unsafe { Self::from_raw_handle(owned.into_raw_handle()) } in from()
Dtraits.rs146 fn from_fd(owned: OwnedFd) -> Self; in from_fd()
192 fn from_handle(owned: OwnedHandle) -> Self; in from_handle()
225 fn from_socket(owned: OwnedSocket) -> Self; in from_socket()
/third_party/rust/crates/foreign-types/foreign-types/src/
Dlib.rs215 pub struct $owned:ident;
220 pub struct $owned(*mut $ctype);
223 impl $crate::ForeignType for $owned {
228 unsafe fn from_ptr(ptr: *mut $ctype) -> $owned {
229 $owned(ptr)
238 impl Drop for $owned {
246 impl Clone for $owned {
248 fn clone(&self) -> $owned {
257 type Owned = $owned;
259 fn to_owned(&self) -> $owned {
[all …]
/third_party/rust/crates/rust-openssl/openssl/src/
Dmacros.rs142 pub struct $owned:ident;
153 pub struct $owned;
158 unsafe impl Send for $owned{}
160 unsafe impl Sync for $owned{}
173 pub struct $owned:ident<T>;
178 pub struct $owned<T>(*mut $ctype, ::std::marker::PhantomData<T>);
181 impl<T> ::foreign_types::ForeignType for $owned<T> {
186 unsafe fn from_ptr(ptr: *mut $ctype) -> $owned<T> {
187 $owned(ptr, ::std::marker::PhantomData)
196 impl<T> Drop for $owned<T> {
[all …]
/third_party/node/deps/icu-small/source/common/
Dlsr.cpp26 owned = langScript.cloneData(errorCode); in LSR()
28 language = owned; in LSR()
29 script = owned + scriptOffset; in LSR()
35 language(other.language), script(other.script), region(other.region), owned(other.owned), in LSR()
38 if (owned != nullptr) { in LSR()
40 other.owned = nullptr; in LSR()
46 uprv_free(owned); in deleteOwned()
56 owned = other.owned; in operator =()
58 if (owned != nullptr) { in operator =()
60 other.owned = nullptr; in operator =()
/third_party/skia/third_party/externals/icu/source/common/
Dlsr.cpp26 owned = langScript.cloneData(errorCode); in LSR()
28 language = owned; in LSR()
29 script = owned + scriptOffset; in LSR()
35 language(other.language), script(other.script), region(other.region), owned(other.owned), in LSR()
38 if (owned != nullptr) { in LSR()
40 other.owned = nullptr; in LSR()
46 uprv_free(owned); in deleteOwned()
56 owned = other.owned; in operator =()
58 if (owned != nullptr) { in operator =()
60 other.owned = nullptr; in operator =()
/third_party/icu/icu4c/source/common/
Dlsr.cpp26 owned = langScript.cloneData(errorCode); in LSR()
28 language = owned; in LSR()
29 script = owned + scriptOffset; in LSR()
35 language(other.language), script(other.script), region(other.region), owned(other.owned), in LSR()
38 if (owned != nullptr) { in LSR()
40 other.owned = nullptr; in LSR()
46 uprv_free(owned); in deleteOwned()
56 owned = other.owned; in operator =()
58 if (owned != nullptr) { in operator =()
60 other.owned = nullptr; in operator =()
/third_party/gstreamer/gstreamer/libs/gst/base/
Dgstbitwriter.c56 ret->owned = TRUE; in gst_bit_writer_new()
117 bitwriter->owned = TRUE; in gst_bit_writer_init()
166 bitwriter->owned = FALSE; in gst_bit_writer_init_with_data()
180 if (bitwriter->owned) in gst_bit_writer_reset()
204 if (bitwriter->owned) in gst_bit_writer_reset_and_get_data()
228 gboolean owned; in gst_bit_writer_reset_and_get_buffer() local
232 owned = bitwriter->owned; in gst_bit_writer_reset_and_get_buffer()
239 if (data && !owned) in gst_bit_writer_reset_and_get_buffer()
Dgstbytewriter.c83 ret->owned = TRUE; in gst_byte_writer_new()
107 ret->owned = TRUE; in gst_byte_writer_new_with_size()
135 ret->owned = FALSE; in gst_byte_writer_new_with_data()
153 writer->owned = TRUE; in gst_byte_writer_init()
175 writer->owned = TRUE; in gst_byte_writer_init_with_size()
201 writer->owned = FALSE; in gst_byte_writer_init_with_data()
216 if (writer->owned) in gst_byte_writer_reset()
240 if (!writer->owned) in gst_byte_writer_reset_and_get_data()
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_mempool.c58 if (pool->owned) in panfrost_pool_alloc_backing()
73 bool prealloc, bool owned) in panfrost_pool_init() argument
77 pool->owned = owned; in panfrost_pool_init()
79 if (owned) in panfrost_pool_init()
89 if (!pool->owned) { in panfrost_pool_cleanup()
103 assert(pool->owned && "pool does not track BOs in unowned mode"); in panfrost_pool_get_bo_handles()
Dpan_mempool.h48 bool owned; member
73 if (!pool->owned) in panfrost_pool_take_ref()
86 owned);
94 assert(pool->owned && "pool does not track BOs in unowned mode"); in panfrost_pool_num_bos()
/third_party/rust/crates/cxx/src/symbols/
Drust_string.rs34 let owned = s.to_owned(); in string_from_utf8() localVariable
35 unsafe { ptr::write(this, owned) } in string_from_utf8()
49 let owned = String::from_utf8_lossy(slice).into_owned(); in string_from_utf8_lossy() localVariable
51 unsafe { ptr::write(this, owned) } in string_from_utf8_lossy()
78 let owned = String::from_utf16_lossy(slice); in string_from_utf16_lossy() localVariable
80 unsafe { ptr::write(this, owned) } in string_from_utf16_lossy()
/third_party/skia/third_party/externals/icu/source/i18n/
Dlistformatter.cpp273 owned(other.owned), data(other.data) { in ListFormatter()
274 if (other.owned != nullptr) { in ListFormatter()
275 owned = new ListFormatInternal(*other.owned); in ListFormatter()
276 data = owned; in ListFormatter()
284 delete owned; in operator =()
285 if (other.owned) { in operator =()
286 owned = new ListFormatInternal(*other.owned); in operator =()
287 data = owned; in operator =()
289 owned = nullptr; in operator =()
545 owned = new ListFormatInternal(listFormatData, errorCode); in ListFormatter()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dlistformatter.cpp273 owned(other.owned), data(other.data) { in ListFormatter()
274 if (other.owned != nullptr) { in ListFormatter()
275 owned = new ListFormatInternal(*other.owned); in ListFormatter()
276 data = owned; in ListFormatter()
284 delete owned; in operator =()
285 if (other.owned) { in operator =()
286 owned = new ListFormatInternal(*other.owned); in operator =()
287 data = owned; in operator =()
289 owned = nullptr; in operator =()
538 owned = new ListFormatInternal(listFormatData, errorCode); in ListFormatter()
[all …]
/third_party/icu/icu4c/source/i18n/
Dlistformatter.cpp273 owned(other.owned), data(other.data) { in ListFormatter()
274 if (other.owned != nullptr) { in ListFormatter()
275 owned = new ListFormatInternal(*other.owned); in ListFormatter()
276 data = owned; in ListFormatter()
284 delete owned; in operator =()
285 if (other.owned) { in operator =()
286 owned = new ListFormatInternal(*other.owned); in operator =()
287 data = owned; in operator =()
289 owned = nullptr; in operator =()
545 owned = new ListFormatInternal(listFormatData, errorCode); in ListFormatter()
[all …]
/third_party/rust/crates/io-lifetimes/examples/
Downing-wrapper.rs58 fn from(owned: Thing) -> Self { in from()
59 owned.filelike in from()
100 fn from(owned: Thing) -> Self { in from()
101 owned.filelike in from()
/third_party/rust/crates/rustix/src/io/fd/
Dmod.rs14 mod owned; module
16 pub use owned::*;
/third_party/rust/crates/rustix/src/io/
Dprocfs.rs257 .map(|(owned, stat)| (owned.as_fd(), stat)) in proc_self()
288 .map(|(owned, _stat)| owned.as_fd()) in proc_self_fd()
325 .map(|(owned, stat)| (owned.as_fd(), stat)) in proc_self_fdinfo()

12345678910>>...13