Home
last modified time | relevance | path

Searched refs:encodeZigZag64 (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java282 assertEquals(0, CodedOutputStream.encodeZigZag64(0)); in testEncodeZigZag()
283 assertEquals(1, CodedOutputStream.encodeZigZag64(-1)); in testEncodeZigZag()
284 assertEquals(2, CodedOutputStream.encodeZigZag64(1)); in testEncodeZigZag()
285 assertEquals(3, CodedOutputStream.encodeZigZag64(-2)); in testEncodeZigZag()
286 assertEquals(0x000000007FFFFFFEL, CodedOutputStream.encodeZigZag64(0x000000003FFFFFFFL)); in testEncodeZigZag()
287 assertEquals(0x000000007FFFFFFFL, CodedOutputStream.encodeZigZag64(0xFFFFFFFFC0000000L)); in testEncodeZigZag()
288 assertEquals(0x00000000FFFFFFFEL, CodedOutputStream.encodeZigZag64(0x000000007FFFFFFFL)); in testEncodeZigZag()
289 assertEquals(0x00000000FFFFFFFFL, CodedOutputStream.encodeZigZag64(0xFFFFFFFF80000000L)); in testEncodeZigZag()
290 assertEquals(0xFFFFFFFFFFFFFFFEL, CodedOutputStream.encodeZigZag64(0x7FFFFFFFFFFFFFFFL)); in testEncodeZigZag()
291 assertEquals(0xFFFFFFFFFFFFFFFFL, CodedOutputStream.encodeZigZag64(0x8000000000000000L)); in testEncodeZigZag()
[all …]
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedOutputStreamMicro.java394 writeRawVarint64(encodeZigZag64(value)); in writeSInt64NoTag()
750 return computeRawVarint64Size(encodeZigZag64(value)); in computeSInt64SizeNoTag()
989 public static long encodeZigZag64(final long n) { in encodeZigZag64() method in CodedOutputStreamMicro
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedOutputByteBufferNano.java566 writeRawVarint64(encodeZigZag64(value)); in writeSInt64NoTag()
917 return computeRawVarint64Size(encodeZigZag64(value)); in computeSInt64SizeNoTag()
1118 public static long encodeZigZag64(final long n) { in encodeZigZag64() method in CodedOutputByteBufferNano
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedOutputStream.java226 writeUInt64(fieldNumber, encodeZigZag64(value)); in writeSInt64()
387 writeUInt64NoTag(encodeZigZag64(value)); in writeSInt64NoTag()
763 return computeUInt64SizeNoTag(encodeZigZag64(value)); in computeSInt64SizeNoTag()
901 public static long encodeZigZag64(final long n) { in encodeZigZag64() method in CodedOutputStream