toWireFormat() — netty Function Reference
Architecture documentation for the toWireFormat() function in BoringSSL.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 270ee6a3_7b13_f5a5_b9d1_1f8a7aa3f9fb["toWireFormat()"] 1df1ee72_d088_6e8a_ed64_d1236e26b4d5["BoringSSL"] 270ee6a3_7b13_f5a5_b9d1_1f8a7aa3f9fb -->|defined in| 1df1ee72_d088_6e8a_ed64_d1236e26b4d5 08e15557_6a5a_2a60_35af_c17df7c07aa5["SSLContext_new()"] 08e15557_6a5a_2a60_35af_c17df7c07aa5 -->|calls| 270ee6a3_7b13_f5a5_b9d1_1f8a7aa3f9fb style 270ee6a3_7b13_f5a5_b9d1_1f8a7aa3f9fb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/BoringSSL.java lines 56–70
private static byte @Nullable [] toWireFormat(String @Nullable [] applicationProtocols) {
if (applicationProtocols == null) {
return null;
}
try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {
for (String p : applicationProtocols) {
byte[] bytes = p.getBytes(StandardCharsets.US_ASCII);
out.write(bytes.length);
out.write(bytes);
}
return out.toByteArray();
} catch (IOException e) {
throw new IllegalStateException(e);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does toWireFormat() do?
toWireFormat() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/BoringSSL.java.
Where is toWireFormat() defined?
toWireFormat() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/BoringSSL.java at line 56.
What calls toWireFormat()?
toWireFormat() is called by 1 function(s): SSLContext_new.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free