Searched refs:decodeZigZag32 (Results 1 – 5 of 5) sorted by relevance
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | CodedInputStreamTest.java | 288 assertEquals( 0, CodedInputStream.decodeZigZag32(0)); in testDecodeZigZag() 289 assertEquals(-1, CodedInputStream.decodeZigZag32(1)); in testDecodeZigZag() 290 assertEquals( 1, CodedInputStream.decodeZigZag32(2)); in testDecodeZigZag() 291 assertEquals(-2, CodedInputStream.decodeZigZag32(3)); in testDecodeZigZag() 292 assertEquals(0x3FFFFFFF, CodedInputStream.decodeZigZag32(0x7FFFFFFE)); in testDecodeZigZag() 293 assertEquals(0xC0000000, CodedInputStream.decodeZigZag32(0x7FFFFFFF)); in testDecodeZigZag() 294 assertEquals(0x7FFFFFFF, CodedInputStream.decodeZigZag32(0xFFFFFFFE)); in testDecodeZigZag() 295 assertEquals(0x80000000, CodedInputStream.decodeZigZag32(0xFFFFFFFF)); in testDecodeZigZag()
|
D | CodedOutputStreamTest.java | 295 assertEquals(0, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(0))); in testEncodeZigZag() 296 assertEquals(1, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(1))); in testEncodeZigZag() 297 assertEquals(-1, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-1))); in testEncodeZigZag() 298 assertEquals(14927, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(14927))); in testEncodeZigZag() 299 assertEquals(-3612, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(-3612))); in testEncodeZigZag()
|
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/ |
D | CodedInputByteBufferNano.java | 272 return decodeZigZag32(readRawVarint32()); in readSInt32() 377 public static int decodeZigZag32(final int n) { in decodeZigZag32() method in CodedInputByteBufferNano
|
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/ |
D | CodedInputStreamMicro.java | 279 return decodeZigZag32(readRawVarint32()); in readSInt32() 417 public static int decodeZigZag32(final int n) { in decodeZigZag32() method in CodedInputStreamMicro
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | CodedInputStream.java | 587 return decodeZigZag32(readRawVarint32()); in readSInt32() 839 public static int decodeZigZag32(final int n) { in decodeZigZag32() method in CodedInputStream
|