Home
last modified time | relevance | path

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

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java273 assertEquals(0, CodedOutputStream.encodeZigZag32(0)); in testEncodeZigZag()
274 assertEquals(1, CodedOutputStream.encodeZigZag32(-1)); in testEncodeZigZag()
275 assertEquals(2, CodedOutputStream.encodeZigZag32(1)); in testEncodeZigZag()
276 assertEquals(3, CodedOutputStream.encodeZigZag32(-2)); in testEncodeZigZag()
277 assertEquals(0x7FFFFFFE, CodedOutputStream.encodeZigZag32(0x3FFFFFFF)); in testEncodeZigZag()
278 assertEquals(0x7FFFFFFF, CodedOutputStream.encodeZigZag32(0xC0000000)); in testEncodeZigZag()
279 assertEquals(0xFFFFFFFE, CodedOutputStream.encodeZigZag32(0x7FFFFFFF)); in testEncodeZigZag()
280 assertEquals(0xFFFFFFFF, CodedOutputStream.encodeZigZag32(0x80000000)); in testEncodeZigZag()
295 assertEquals(0, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(0))); in testEncodeZigZag()
296 assertEquals(1, CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(1))); in testEncodeZigZag()
[all …]
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedOutputStreamMicro.java389 writeRawVarint32(encodeZigZag32(value)); in writeSInt32NoTag()
742 return computeRawVarint32Size(encodeZigZag32(value)); in computeSInt32SizeNoTag()
974 public static int encodeZigZag32(final int n) { in encodeZigZag32() method in CodedOutputStreamMicro
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedOutputByteBufferNano.java561 writeRawVarint32(encodeZigZag32(value)); in writeSInt32NoTag()
909 return computeRawVarint32Size(encodeZigZag32(value)); in computeSInt32SizeNoTag()
1103 public static int encodeZigZag32(final int n) { in encodeZigZag32() method in CodedOutputByteBufferNano
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedOutputStream.java203 writeUInt32(fieldNumber, encodeZigZag32(value)); in writeSInt32()
364 writeUInt32NoTag(encodeZigZag32(value)); in writeSInt32NoTag()
705 return computeUInt32SizeNoTag(encodeZigZag32(value)); in computeSInt32SizeNoTag()
886 public static int encodeZigZag32(final int n) { in encodeZigZag32() method in CodedOutputStream