MCPcopy Create free account
hub / github.com/apache/tomcat / BIO_write

Method BIO_write

java/org/apache/tomcat/util/openssl/openssl_h.java:1534–1544  ·  view source on GitHub ↗

{@snippet lang = c : int BIO_write(BIO b, const void data, int dlen) }

(MemorySegment b, MemorySegment data, int dlen)

Source from the content-addressed store, hash-verified

1532 * }
1533 */
1534 public static int BIO_write(MemorySegment b, MemorySegment data, int dlen) {
1535 var mh$ = BIO_write.HANDLE;
1536 try {
1537 if (TRACE_DOWNCALLS) {
1538 traceDowncall("BIO_write", b, data, dlen);
1539 }
1540 return (int) mh$.invokeExact(b, data, dlen);
1541 } catch (Throwable ex$) {
1542 throw new AssertionError("should not reach here", ex$);
1543 }
1544 }
1545
1546 private static class BIO_ctrl {
1547 public static final FunctionDescriptor DESC = FunctionDescriptor.of(openssl_h.C_LONG, openssl_h.C_POINTER,

Callers 2

writeEncryptedDataMethod · 0.80
addCertificateMethod · 0.80

Calls 1

traceDowncallMethod · 0.95

Tested by

no test coverage detected