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

Method writeTo

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

Source from the content-addressed store, hash-verified

5443 }
5444
5445 public void writeTo(com.google.protobuf.CodedOutputStream output)
5446 throws java.io.IOException {
5447 if (friendNumber_ != 0) {
5448 output.writeUInt32(1, friendNumber_);
5449 }
5450 if (fileNumber_ != 0) {
5451 output.writeUInt32(2, fileNumber_);
5452 }
5453 if (kind_ != 0) {
5454 output.writeUInt32(3, kind_);
5455 }
5456 if (fileSize_ != 0L) {
5457 output.writeUInt64(4, fileSize_);
5458 }
5459 if (!filename_.isEmpty()) {
5460 output.writeBytes(5, filename_);
5461 }
5462 }
5463
5464 public int getSerializedSize() {
5465 int size = memoizedSerializedSize;

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected