Home / Function/ getLong() — netty Function Reference

getLong() — netty Function Reference

Architecture documentation for the getLong() function in SWARUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4f5c93d8_0e34_e7e1_a91a_0838ebdb8af8["getLong()"]
  f8708bc1_cb99_2db5_e587_516d1dfe420a["SWARUtilTest"]
  4f5c93d8_0e34_e7e1_a91a_0838ebdb8af8 -->|defined in| f8708bc1_cb99_2db5_e587_516d1dfe420a
  e895828f_6804_eb63_ea65_bd8e78fafc98["containsUpperCaseLong()"]
  e895828f_6804_eb63_ea65_bd8e78fafc98 -->|calls| 4f5c93d8_0e34_e7e1_a91a_0838ebdb8af8
  c124bd61_8fa9_05e6_6a63_d2858c61c423["containsLowerCaseLong()"]
  c124bd61_8fa9_05e6_6a63_d2858c61c423 -->|calls| 4f5c93d8_0e34_e7e1_a91a_0838ebdb8af8
  04cc8dbc_89a3_be5f_5965_724db45c5e13["toUpperCaseLong()"]
  04cc8dbc_89a3_be5f_5965_724db45c5e13 -->|calls| 4f5c93d8_0e34_e7e1_a91a_0838ebdb8af8
  4b5005f3_89c1_1d03_3f21_a0e56236c55b["toLowerCaseLong()"]
  4b5005f3_89c1_1d03_3f21_a0e56236c55b -->|calls| 4f5c93d8_0e34_e7e1_a91a_0838ebdb8af8
  style 4f5c93d8_0e34_e7e1_a91a_0838ebdb8af8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/SWARUtilTest.java lines 201–211

    private static long getLong(byte[] bytes, int idx) {
        assert idx >= 0 && bytes.length >= idx + 8;
        return (long) bytes[idx] << 56 |
               ((long) bytes[idx + 1] & 0xff) << 48 |
               ((long) bytes[idx + 2] & 0xff) << 40 |
               ((long) bytes[idx + 3] & 0xff) << 32 |
               ((long) bytes[idx + 4] & 0xff) << 24 |
               ((long) bytes[idx + 5] & 0xff) << 16 |
               ((long) bytes[idx + 6] & 0xff) << 8 |
               (long) bytes[idx + 7] & 0xff;
    }

Domain

Subdomains

Frequently Asked Questions

What does getLong() do?
getLong() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/SWARUtilTest.java.
Where is getLong() defined?
getLong() is defined in common/src/test/java/io/netty/util/internal/SWARUtilTest.java at line 201.
What calls getLong()?
getLong() is called by 4 function(s): containsLowerCaseLong, containsUpperCaseLong, toLowerCaseLong, toUpperCaseLong.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free