getSerializedSize() — netty Function Reference
Architecture documentation for the getSerializedSize() function in WorldClockProtocol.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 75754b34_e66a_1150_25c6_98a9f835ad0f["getSerializedSize()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5["Location"] 75754b34_e66a_1150_25c6_98a9f835ad0f -->|defined in| 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 9fcb9f5c_9d02_e3de_3ffb_6530047ac3b8["writeTo()"] 9fcb9f5c_9d02_e3de_3ffb_6530047ac3b8 -->|calls| 75754b34_e66a_1150_25c6_98a9f835ad0f 681146d9_d8d4_0539_1fd6_19c9979da70a["getCityBytes()"] 75754b34_e66a_1150_25c6_98a9f835ad0f -->|calls| 681146d9_d8d4_0539_1fd6_19c9979da70a 34b5d7c3_fd66_0f6f_505a_6ded711e08c7["getSerializedSize()"] 75754b34_e66a_1150_25c6_98a9f835ad0f -->|calls| 34b5d7c3_fd66_0f6f_505a_6ded711e08c7 e35474a5_d5e3_58b5_4f25_683b43114f69["getUnknownFields()"] 75754b34_e66a_1150_25c6_98a9f835ad0f -->|calls| e35474a5_d5e3_58b5_4f25_683b43114f69 style 75754b34_e66a_1150_25c6_98a9f835ad0f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java lines 566–583
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, continent_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getCityBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
Domain
Subdomains
Called By
Source
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 566.
What does getSerializedSize() call?
getSerializedSize() calls 3 function(s): getCityBytes, getSerializedSize, getUnknownFields.
What calls getSerializedSize()?
getSerializedSize() is called by 1 function(s): writeTo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free