MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyUnicode_AS_DATA

Function PyUnicode_AS_DATA

python27-sys/src/unicodeobject.rs:65–67  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

63
64#[inline(always)]
65pub unsafe fn PyUnicode_AS_DATA(o: *mut PyObject) -> *const c_char {
66 (*(o as *mut PyUnicodeObject)).data as *const c_char
67}
68
69pub const Py_UNICODE_REPLACEMENT_CHARACTER: Py_UNICODE = 0xFFFD;
70

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected