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
  34b5d7c3_fd66_0f6f_505a_6ded711e08c7["getSerializedSize()"]
  97830d5b_e8a9_e198_3dc6_06ad84acece5["LocalTime"]
  34b5d7c3_fd66_0f6f_505a_6ded711e08c7 -->|defined in| 97830d5b_e8a9_e198_3dc6_06ad84acece5
  75754b34_e66a_1150_25c6_98a9f835ad0f["getSerializedSize()"]
  75754b34_e66a_1150_25c6_98a9f835ad0f -->|calls| 34b5d7c3_fd66_0f6f_505a_6ded711e08c7
  ff53a464_9d91_8267_dbf3_b87fc2262f28["writeTo()"]
  ff53a464_9d91_8267_dbf3_b87fc2262f28 -->|calls| 34b5d7c3_fd66_0f6f_505a_6ded711e08c7
  447c5c79_1f97_6ed8_d614_8f1be2546734["getSerializedSize()"]
  34b5d7c3_fd66_0f6f_505a_6ded711e08c7 -->|calls| 447c5c79_1f97_6ed8_d614_8f1be2546734
  2698b468_42bf_fb10_7a6b_868579464bd9["getUnknownFields()"]
  34b5d7c3_fd66_0f6f_505a_6ded711e08c7 -->|calls| 2698b468_42bf_fb10_7a6b_868579464bd9
  style 34b5d7c3_fd66_0f6f_505a_6ded711e08c7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java lines 2045–2082

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, year_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, month_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, dayOfMonth_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(5, dayOfWeek_.getNumber());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(6, hour_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(7, minute_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(8, second_);
      }
      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 2045.
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