MCPcopy Create free account
hub / github.com/InsightIM/Tok-Android / getSerializedSize

Method getSerializedSize

app/src/main/java/im/tox/proto/Av.java:122–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 public int getSerializedSize() {
123 int size = memoizedSerializedSize;
124 if (size != -1) return size;
125
126 size = 0;
127 if (friendNumber_ != 0) {
128 size += com.google.protobuf.CodedOutputStream
129 .computeInt32Size(1, friendNumber_);
130 }
131 if (audioEnabled_ != false) {
132 size += com.google.protobuf.CodedOutputStream
133 .computeBoolSize(2, audioEnabled_);
134 }
135 if (videoEnabled_ != false) {
136 size += com.google.protobuf.CodedOutputStream
137 .computeBoolSize(3, videoEnabled_);
138 }
139 memoizedSerializedSize = size;
140 return size;
141 }
142
143 public static im.tox.proto.Av.Call parseFrom(
144 com.google.protobuf.ByteString data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected