MCPcopy Index your code
hub / github.com/RustPython/RustPython / _txt2obj

Function _txt2obj

crates/stdlib/src/openssl.rs:385–387  ·  view source on GitHub ↗
(s: &CStr, no_name: bool)

Source from the content-addressed store, hash-verified

383 }
384
385 fn _txt2obj(s: &CStr, no_name: bool) -> Option<Asn1Object> {
386 unsafe { ptr2obj(sys::OBJ_txt2obj(s.as_ptr(), i32::from(no_name))) }
387 }
388 fn _nid2obj(nid: Nid) -> Option<Asn1Object> {
389 unsafe { ptr2obj(sys::OBJ_nid2obj(nid.as_raw())) }
390 }

Callers 3

__new__Method · 0.85
fromnameMethod · 0.85
txt2objFunction · 0.85

Calls 2

ptr2objFunction · 0.85
as_ptrMethod · 0.45

Tested by

no test coverage detected