shuffle() — netty Function Reference
Architecture documentation for the shuffle() function in AdaptiveByteBufAllocatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD aa738b31_7adc_d18f_9ebe_6964a3faaa4b["shuffle()"] b5780ec9_74a4_594b_4225_0099765d71e7["AdaptiveByteBufAllocatorTest"] aa738b31_7adc_d18f_9ebe_6964a3faaa4b -->|defined in| b5780ec9_74a4_594b_4225_0099765d71e7 93c45167_8267_1dcc_a3b9_24fbc36946f7["buddyAllocationConsistency()"] 93c45167_8267_1dcc_a3b9_24fbc36946f7 -->|calls| aa738b31_7adc_d18f_9ebe_6964a3faaa4b style aa738b31_7adc_d18f_9ebe_6964a3faaa4b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AdaptiveByteBufAllocatorTest.java lines 450–458
private static void shuffle(SplittableRandom rng, Object array) {
int len = Array.getLength(array);
for (int i = 0; i < len; i++) {
int n = rng.nextInt(i, len);
Object value = Array.get(array, i);
Array.set(array, i, Array.get(array, n));
Array.set(array, n, value);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does shuffle() do?
shuffle() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AdaptiveByteBufAllocatorTest.java.
Where is shuffle() defined?
shuffle() is defined in buffer/src/test/java/io/netty/buffer/AdaptiveByteBufAllocatorTest.java at line 450.
What calls shuffle()?
shuffle() is called by 1 function(s): buddyAllocationConsistency.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free