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

Method writeTo

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

Source from the content-addressed store, hash-verified

4048 }
4049
4050 public void writeTo(com.google.protobuf.CodedOutputStream output)
4051 throws java.io.IOException {
4052 if (friendNumber_ != 0) {
4053 output.writeUInt32(1, friendNumber_);
4054 }
4055 if (type_ != MessageType.Type.NORMAL.getNumber()) {
4056 output.writeEnum(2, type_);
4057 }
4058 if (timeDelta_ != 0) {
4059 output.writeUInt32(3, timeDelta_);
4060 }
4061 if (!message_.isEmpty()) {
4062 output.writeBytes(4, message_);
4063 }
4064 }
4065
4066 public int getSerializedSize() {
4067 int size = memoizedSerializedSize;

Callers

nothing calls this directly

Calls 2

getNumberMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected