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

Method writeTo

app/src/main/java/im/tox/proto/Group.java:3219–3245  ·  view source on GitHub ↗
(com.google.protobuf.CodedOutputStream output)

Source from the content-addressed store, hash-verified

3217 }
3218
3219 public void writeTo(com.google.protobuf.CodedOutputStream output)
3220 throws java.io.IOException {
3221 if (cmd_ != 0) {
3222 output.writeUInt32(1, cmd_);
3223 }
3224 if (groupId_ != 0) {
3225 output.writeUInt32(2, groupId_);
3226 }
3227 if (!groupName_.isEmpty()) {
3228 output.writeBytes(3, groupName_);
3229 }
3230 if (groupInvite_ != null) {
3231 output.writeMessage(4, getGroupInvite());
3232 }
3233 if (groupTokenPush_ != null) {
3234 output.writeMessage(5, getGroupTokenPush());
3235 }
3236 if (groupCreate_ != null) {
3237 output.writeMessage(6, getGroupCreate());
3238 }
3239 if (groupRealMsg_ != null) {
3240 output.writeMessage(7, getGroupRealMsg());
3241 }
3242 for (int i = 0; i < groupPeers_.size(); i++) {
3243 output.writeMessage(8, groupPeers_.get(i));
3244 }
3245 }
3246
3247 public int getSerializedSize() {
3248 int size = memoizedSerializedSize;

Callers

nothing calls this directly

Calls 7

getGroupInviteMethod · 0.95
getGroupTokenPushMethod · 0.95
getGroupCreateMethod · 0.95
getGroupRealMsgMethod · 0.95
sizeMethod · 0.80
isEmptyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected