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

Method writeTo

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

Source from the content-addressed store, hash-verified

5944 }
5945
5946 public void writeTo(com.google.protobuf.CodedOutputStream output)
5947 throws java.io.IOException {
5948 if (friendNumber_ != 0) {
5949 output.writeUInt32(1, friendNumber_);
5950 }
5951 if (fileNumber_ != 0) {
5952 output.writeUInt32(2, fileNumber_);
5953 }
5954 if (position_ != 0L) {
5955 output.writeUInt64(3, position_);
5956 }
5957 if (!data_.isEmpty()) {
5958 output.writeBytes(4, data_);
5959 }
5960 }
5961
5962 public int getSerializedSize() {
5963 int size = memoizedSerializedSize;

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected