String() — netty Function Reference
Architecture documentation for the String() function in CompletionQueue.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c107c6b9_e1f7_f089_9609_23bd1c305d58["String()"] af6dd3bb_1c78_efaf_ac7c_5f13fef08613["CompletionQueue"] c107c6b9_e1f7_f089_9609_23bd1c305d58 -->|defined in| af6dd3bb_1c78_efaf_ac7c_5f13fef08613 04ea1afd_83d6_fa0b_816d_7f9913fa27ea["cqeIdx()"] c107c6b9_e1f7_f089_9609_23bd1c305d58 -->|calls| 04ea1afd_83d6_fa0b_816d_7f9913fa27ea style c107c6b9_e1f7_f089_9609_23bd1c305d58 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/CompletionQueue.java lines 175–196
@Override
public String toString() {
StringJoiner sb = new StringJoiner(", ", "CompletionQueue [", "]");
if (closed) {
sb.add("closed");
} else {
int tail = (int) INT_HANDLE.getVolatile(ktail, 0);
int head = ringHead;
while (head != tail) {
int cqePosition = cqeIdx(head++, ringMask) * cqeLength;
long udata = completionQueueArray.getLong(cqePosition + CQE_USER_DATA_FIELD);
int res = completionQueueArray.getInt(cqePosition + CQE_RES_FIELD);
int flags = completionQueueArray.getInt(cqePosition + CQE_FLAGS_FIELD);
if ((flags & Native.IORING_CQE_F_32) != 0) {
// We used mixed mode and this was a 32 byte CQE, let's increment the head once more.
head++;
}
sb.add("(res=" + res).add(", flags=" + flags).add(", udata=" + udata).add(")");
}
}
return sb.toString();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does String() do?
String() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/CompletionQueue.java.
Where is String() defined?
String() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/CompletionQueue.java at line 175.
What does String() call?
String() calls 1 function(s): cqeIdx.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free