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

Function PyUnicode_AS_UNICODE

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

Source from the content-addressed store, hash-verified

58
59#[inline(always)]
60pub unsafe fn PyUnicode_AS_UNICODE(o: *mut PyObject) -> *mut Py_UNICODE {
61 (*(o as *mut PyUnicodeObject)).data
62}
63
64#[inline(always)]
65pub unsafe fn PyUnicode_AS_DATA(o: *mut PyObject) -> *const c_char {

Callers 1

dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected