Home
last modified time | relevance | path

Searched refs:path_bytes (Results 1 - 4 of 4) sorted by relevance

/third_party/rust/crates/rustix/src/backend/libc/net/
H A Dread_sockaddr.rs145 // Trim off unused bytes from the end of `path_bytes`.
146 let path_bytes = if cfg!(target_os = "freebsd") {
165 SocketAddrUnix::new(path_bytes.iter().map(|c| *c as u8).collect::<Vec<u8>>())
239 let path_bytes = &decode.sun_path[..len - 1 - offsetof_sun_path]; in inner_read_sockaddr_os()
245 let path_bytes = &path_bytes[..path_bytes.iter().position(|b| *b == 0).unwrap()]; in inner_read_sockaddr_os()
248 SocketAddrUnix::new(path_bytes.iter().map(|c| *c as u8).collect::<Vec<u8>>()) in inner_read_sockaddr_os()
/third_party/python/Python/
H A Dfileutils.c1695 const char *path_bytes; in _Py_fopen_obj() local
1701 path_bytes = PyBytes_AS_STRING(bytes); in _Py_fopen_obj()
1710 f = fopen(path_bytes, mode); in _Py_fopen_obj()
/third_party/python/Lib/test/
H A Dtest_os.py4370 path_bytes = os.fsencode(self.path)
4371 entries = list(os.scandir(path_bytes))
4383 path_bytes = cls(os.fsencode(self.path))
4385 entries = list(os.scandir(path_bytes))
/third_party/python/Objects/
H A Dunicodeobject.c4126 PyObject *path_bytes = NULL; in PyUnicode_FSDecoder() local
4135 path_bytes = PyBytes_FromObject(path); in PyUnicode_FSDecoder()
4137 if (!path_bytes) { in PyUnicode_FSDecoder()
4140 output = PyUnicode_DecodeFSDefaultAndSize(PyBytes_AS_STRING(path_bytes), in PyUnicode_FSDecoder()
4141 PyBytes_GET_SIZE(path_bytes)); in PyUnicode_FSDecoder()
4142 Py_DECREF(path_bytes); in PyUnicode_FSDecoder()

Completed in 29 milliseconds