Home
last modified time | relevance | path

Searched refs:decodeZigZag64 (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java297 assertEquals( 0, CodedInputStream.decodeZigZag64(0)); in testDecodeZigZag()
298 assertEquals(-1, CodedInputStream.decodeZigZag64(1)); in testDecodeZigZag()
299 assertEquals( 1, CodedInputStream.decodeZigZag64(2)); in testDecodeZigZag()
300 assertEquals(-2, CodedInputStream.decodeZigZag64(3)); in testDecodeZigZag()
302 CodedInputStream.decodeZigZag64(0x000000007FFFFFFEL)); in testDecodeZigZag()
304 CodedInputStream.decodeZigZag64(0x000000007FFFFFFFL)); in testDecodeZigZag()
306 CodedInputStream.decodeZigZag64(0x00000000FFFFFFFEL)); in testDecodeZigZag()
308 CodedInputStream.decodeZigZag64(0x00000000FFFFFFFFL)); in testDecodeZigZag()
310 CodedInputStream.decodeZigZag64(0xFFFFFFFFFFFFFFFEL)); in testDecodeZigZag()
312 CodedInputStream.decodeZigZag64(0xFFFFFFFFFFFFFFFFL)); in testDecodeZigZag()
DCodedOutputStreamTest.java301 assertEquals(0, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(0))); in testEncodeZigZag()
302 assertEquals(1, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(1))); in testEncodeZigZag()
303 assertEquals(-1, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-1))); in testEncodeZigZag()
304 assertEquals(14927, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(14927))); in testEncodeZigZag()
305 assertEquals(-3612, CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-3612))); in testEncodeZigZag()
309 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(856912304801416L))); in testEncodeZigZag()
312 CodedOutputStream.encodeZigZag64(CodedInputStream.decodeZigZag64(-75123905439571256L))); in testEncodeZigZag()
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedInputByteBufferNano.java277 return decodeZigZag64(readRawVarint64()); in readSInt64()
391 public static long decodeZigZag64(final long n) { in decodeZigZag64() method in CodedInputByteBufferNano
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedInputStreamMicro.java284 return decodeZigZag64(readRawVarint64()); in readSInt64()
431 public static long decodeZigZag64(final long n) { in decodeZigZag64() method in CodedInputStreamMicro
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java592 return decodeZigZag64(readRawVarint64()); in readSInt64()
853 public static long decodeZigZag64(final long n) { in decodeZigZag64() method in CodedInputStream