Home / Function/ getSerializedSize() — netty Function Reference

getSerializedSize() — netty Function Reference

Architecture documentation for the getSerializedSize() function in WorldClockProtocol.java from the netty codebase.

Function java Buffer Search calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  f6fdf078_7944_c30f_c1af_be10625296ff["getSerializedSize()"]
  e9c7c8dc_d563_0a18_9c8e_775b69c37841["Locations"]
  f6fdf078_7944_c30f_c1af_be10625296ff -->|defined in| e9c7c8dc_d563_0a18_9c8e_775b69c37841
  447c5c79_1f97_6ed8_d614_8f1be2546734["getSerializedSize()"]
  447c5c79_1f97_6ed8_d614_8f1be2546734 -->|calls| f6fdf078_7944_c30f_c1af_be10625296ff
  0fc51093_a14d_05be_4d46_e273a0891e53["writeTo()"]
  0fc51093_a14d_05be_4d46_e273a0891e53 -->|calls| f6fdf078_7944_c30f_c1af_be10625296ff
  447c5c79_1f97_6ed8_d614_8f1be2546734["getSerializedSize()"]
  f6fdf078_7944_c30f_c1af_be10625296ff -->|calls| 447c5c79_1f97_6ed8_d614_8f1be2546734
  2698b468_42bf_fb10_7a6b_868579464bd9["getUnknownFields()"]
  f6fdf078_7944_c30f_c1af_be10625296ff -->|calls| 2698b468_42bf_fb10_7a6b_868579464bd9
  style f6fdf078_7944_c30f_c1af_be10625296ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java lines 1130–1143

    @Override
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < location_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, location_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

Domain

Subdomains

Frequently Asked Questions

What does getSerializedSize() do?
getSerializedSize() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java.
Where is getSerializedSize() defined?
getSerializedSize() is defined in example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java at line 1130.
What does getSerializedSize() call?
getSerializedSize() calls 2 function(s): getSerializedSize, getUnknownFields.
What calls getSerializedSize()?
getSerializedSize() is called by 2 function(s): getSerializedSize, writeTo.

Analyze Your Own Codebase

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

Try Supermodel Free