ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in CloseWebSocketFrame.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 53e2de4f_9e14_f0f2_fe76_383a5e1dc62a["ByteBuf()"] 5070406a_c000_8334_1d2d_467605456155["CloseWebSocketFrame"] 53e2de4f_9e14_f0f2_fe76_383a5e1dc62a -->|defined in| 5070406a_c000_8334_1d2d_467605456155 style 53e2de4f_9e14_f0f2_fe76_383a5e1dc62a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/CloseWebSocketFrame.java lines 101–112
private static ByteBuf newBinaryData(int statusCode, String reasonText) {
if (reasonText == null) {
reasonText = StringUtil.EMPTY_STRING;
}
ByteBuf binaryData = Unpooled.buffer(2 + reasonText.length());
binaryData.writeShort(statusCode);
if (!reasonText.isEmpty()) {
binaryData.writeCharSequence(reasonText, CharsetUtil.UTF_8);
}
return binaryData;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/CloseWebSocketFrame.java.
Where is ByteBuf() defined?
ByteBuf() is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/CloseWebSocketFrame.java at line 101.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free