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

Function ptr2obj

crates/stdlib/src/openssl.rs:377–383  ·  view source on GitHub ↗
(ptr: *mut sys::ASN1_OBJECT)

Source from the content-addressed store, hash-verified

375 }
376
377 unsafe fn ptr2obj(ptr: *mut sys::ASN1_OBJECT) -> Option<Asn1Object> {
378 if ptr.is_null() {
379 None
380 } else {
381 Some(unsafe { Asn1Object::from_ptr(ptr) })
382 }
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))) }

Callers 2

_txt2objFunction · 0.85
_nid2objFunction · 0.85

Calls 1

SomeClass · 0.50

Tested by

no test coverage detected