Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DCodedOutputStreamTest.java228 assertEquals(0, CodedOutputStream.encodeZigZag64( 0)); in testEncodeZigZag()
229 assertEquals(1, CodedOutputStream.encodeZigZag64(-1)); in testEncodeZigZag()
230 assertEquals(2, CodedOutputStream.encodeZigZag64( 1)); in testEncodeZigZag()
231 assertEquals(3, CodedOutputStream.encodeZigZag64(-2)); in testEncodeZigZag()
233 CodedOutputStream.encodeZigZag64(0x000000003FFFFFFFL)); in testEncodeZigZag()
235 CodedOutputStream.encodeZigZag64(0xFFFFFFFFC0000000L)); in testEncodeZigZag()
237 CodedOutputStream.encodeZigZag64(0x000000007FFFFFFFL)); in testEncodeZigZag()
239 CodedOutputStream.encodeZigZag64(0xFFFFFFFF80000000L)); in testEncodeZigZag()
241 CodedOutputStream.encodeZigZag64(0x7FFFFFFFFFFFFFFFL)); in testEncodeZigZag()
243 CodedOutputStream.encodeZigZag64(0x8000000000000000L)); in testEncodeZigZag()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/
DCodedOutputByteBufferNano.java551 writeRawVarint64(encodeZigZag64(value)); in writeSInt64NoTag()
885 return computeRawVarint64Size(encodeZigZag64(value)); in computeSInt64SizeNoTag()
1086 public static long encodeZigZag64(final long n) { in encodeZigZag64() method in CodedOutputByteBufferNano
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DCodedOutputStream.java260 writeUInt64(fieldNumber, encodeZigZag64(value)); in writeSInt64()
421 writeUInt64NoTag(encodeZigZag64(value)); in writeSInt64NoTag()
797 return computeUInt64SizeNoTag(encodeZigZag64(value)); in computeSInt64SizeNoTag()
935 public static long encodeZigZag64(final long n) { in encodeZigZag64() method in CodedOutputStream