{@snippet lang = c : BIO BIO_new(const BIO_METHOD type) }
(MemorySegment type)
| 1377 | * } |
| 1378 | */ |
| 1379 | public static MemorySegment BIO_new(MemorySegment type) { |
| 1380 | var mh$ = BIO_new.HANDLE; |
| 1381 | try { |
| 1382 | if (TRACE_DOWNCALLS) { |
| 1383 | traceDowncall("BIO_new", type); |
| 1384 | } |
| 1385 | return (MemorySegment) mh$.invokeExact(type); |
| 1386 | } catch (Throwable ex$) { |
| 1387 | throw new AssertionError("should not reach here", ex$); |
| 1388 | } |
| 1389 | } |
| 1390 | |
| 1391 | private static class BIO_free { |
| 1392 | public static final FunctionDescriptor DESC = FunctionDescriptor.of(openssl_h.C_INT, openssl_h.C_POINTER); |
no test coverage detected