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

Function PyUnicode_GET_DATA_SIZE

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

Source from the content-addressed store, hash-verified

53
54#[inline(always)]
55pub unsafe fn PyUnicode_GET_DATA_SIZE(o: *mut PyObject) -> Py_ssize_t {
56 (*(o as *mut PyUnicodeObject)).length * Py_UNICODE_SIZE
57}
58
59#[inline(always)]
60pub unsafe fn PyUnicode_AS_UNICODE(o: *mut PyObject) -> *mut Py_UNICODE {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected