unrolledToUpperCase() — netty Function Reference
Architecture documentation for the unrolledToUpperCase() function in AsciiStringUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6a5e7782_4c2b_e42a_a9cd_12fc1f861554["unrolledToUpperCase()"] 84873396_ba4c_3002_b5f9_9b7743d03751["AsciiStringUtil"] 6a5e7782_4c2b_e42a_a9cd_12fc1f861554 -->|defined in| 84873396_ba4c_3002_b5f9_9b7743d03751 4145ce36_ee3b_ee17_ea11_7e3ee9de39d1["toUpperCase()"] 4145ce36_ee3b_ee17_ea11_7e3ee9de39d1 -->|calls| 6a5e7782_4c2b_e42a_a9cd_12fc1f861554 4145ce36_ee3b_ee17_ea11_7e3ee9de39d1["toUpperCase()"] 6a5e7782_4c2b_e42a_a9cd_12fc1f861554 -->|calls| 4145ce36_ee3b_ee17_ea11_7e3ee9de39d1 style 6a5e7782_4c2b_e42a_a9cd_12fc1f861554 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/AsciiStringUtil.java lines 232–252
private static void unrolledToUpperCase(final byte[] src, int srcOffset,
final byte[] dst, int dstOffset, final int byteCount) {
assert byteCount >= 0 && byteCount < 8;
int offset = 0;
if ((byteCount & Integer.BYTES) != 0) {
final int word = PlatformDependent.getInt(src, srcOffset + offset);
PlatformDependent.putInt(dst, dstOffset + offset, SWARUtil.toUpperCase(word));
offset += Integer.BYTES;
}
if ((byteCount & Short.BYTES) != 0) {
final short word = PlatformDependent.getShort(src, srcOffset + offset);
final short result = (short) ((toUpperCase((byte) (word >>> 8)) << 8) | toUpperCase((byte) word));
PlatformDependent.putShort(dst, dstOffset + offset, result);
offset += Short.BYTES;
}
if ((byteCount & Byte.BYTES) != 0) {
PlatformDependent.putByte(dst, dstOffset + offset,
toUpperCase(PlatformDependent.getByte(src, srcOffset + offset)));
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does unrolledToUpperCase() do?
unrolledToUpperCase() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/AsciiStringUtil.java.
Where is unrolledToUpperCase() defined?
unrolledToUpperCase() is defined in common/src/main/java/io/netty/util/AsciiStringUtil.java at line 232.
What does unrolledToUpperCase() call?
unrolledToUpperCase() calls 1 function(s): toUpperCase.
What calls unrolledToUpperCase()?
unrolledToUpperCase() is called by 1 function(s): toUpperCase.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free