byteAt() — netty Function Reference
Architecture documentation for the byteAt() function in AsciiString.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d6afc68a_9991_3f66_cbde_8ec9fd5579cf["byteAt()"] a41de6d4_fd08_8a12_95fd_35db12fdb4cc["AsciiString"] d6afc68a_9991_3f66_cbde_8ec9fd5579cf -->|defined in| a41de6d4_fd08_8a12_95fd_35db12fdb4cc 84f2e848_a873_1bab_e97b_ddaa0dd1fdf9["charAt()"] 84f2e848_a873_1bab_e97b_ddaa0dd1fdf9 -->|calls| d6afc68a_9991_3f66_cbde_8ec9fd5579cf 57f723e5_8455_26d1_9600_4952e1aaf507["parseInt()"] 57f723e5_8455_26d1_9600_4952e1aaf507 -->|calls| d6afc68a_9991_3f66_cbde_8ec9fd5579cf 05e5282c_1cf1_8f23_909a_a835eb895086["parseLong()"] 05e5282c_1cf1_8f23_909a_a835eb895086 -->|calls| d6afc68a_9991_3f66_cbde_8ec9fd5579cf style d6afc68a_9991_3f66_cbde_8ec9fd5579cf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/AsciiString.java lines 325–336
public byte byteAt(int index) {
// We must do a range check here to enforce the access does not go outside our sub region of the array.
// We rely on the array access itself to pick up the array out of bounds conditions
if (index < 0 || index >= length) {
throw new IndexOutOfBoundsException("index: " + index + " must be in the range [0," + length + ")");
}
// Try to use unsafe to avoid double checking the index bounds
if (PlatformDependent.hasUnsafe()) {
return PlatformDependent.getByte(value, index + offset);
}
return value[index + offset];
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does byteAt() do?
byteAt() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/AsciiString.java.
Where is byteAt() defined?
byteAt() is defined in common/src/main/java/io/netty/util/AsciiString.java at line 325.
What calls byteAt()?
byteAt() is called by 3 function(s): charAt, parseInt, parseLong.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free