Searched refs:path_bytes (Results 1 – 4 of 4) sorted by relevance
146 let path_bytes = if cfg!(target_os = "freebsd") { in read_sockaddr() localVariable165 SocketAddrUnix::new(path_bytes.iter().map(|c| *c as u8).collect::<Vec<u8>>()) in read_sockaddr()239 let path_bytes = &decode.sun_path[..len - 1 - offsetof_sun_path]; in inner_read_sockaddr_os() localVariable245 let path_bytes = &path_bytes[..path_bytes.iter().position(|b| *b == 0).unwrap()]; in inner_read_sockaddr_os() localVariable248 SocketAddrUnix::new(path_bytes.iter().map(|c| *c as u8).collect::<Vec<u8>>()) in inner_read_sockaddr_os()
1671 const char *path_bytes; in _Py_fopen_obj() local1677 path_bytes = PyBytes_AS_STRING(bytes); in _Py_fopen_obj()1686 f = fopen(path_bytes, mode); in _Py_fopen_obj()
4307 path_bytes = os.fsencode(self.path)4308 entries = list(os.scandir(path_bytes))4320 path_bytes = cls(os.fsencode(self.path))4322 entries = list(os.scandir(path_bytes))
4196 PyObject *path_bytes = NULL; in PyUnicode_FSDecoder() local4205 path_bytes = PyBytes_FromObject(path); in PyUnicode_FSDecoder()4207 if (!path_bytes) { in PyUnicode_FSDecoder()4210 output = PyUnicode_DecodeFSDefaultAndSize(PyBytes_AS_STRING(path_bytes), in PyUnicode_FSDecoder()4211 PyBytes_GET_SIZE(path_bytes)); in PyUnicode_FSDecoder()4212 Py_DECREF(path_bytes); in PyUnicode_FSDecoder()