MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / PyUnicode_GET_SIZE

Function PyUnicode_GET_SIZE

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

Source from the content-addressed store, hash-verified

48
49#[inline(always)]
50pub unsafe fn PyUnicode_GET_SIZE(o: *mut PyObject) -> Py_ssize_t {
51 (*(o as *mut PyUnicodeObject)).length
52}
53
54#[inline(always)]
55pub unsafe fn PyUnicode_GET_DATA_SIZE(o: *mut PyObject) -> Py_ssize_t {

Callers 1

dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected