HomeSort by relevance Sort by last modified time
    Searched refs:encodeZigZag32 (Results 1 - 3 of 3) sorted by null

  /external/protobuf/java/src/test/java/com/google/protobuf/
CodedOutputStreamTest.java 215 /** Test encodeZigZag32() and encodeZigZag64(). */
217 assertEquals(0, CodedOutputStream.encodeZigZag32( 0));
218 assertEquals(1, CodedOutputStream.encodeZigZag32(-1));
219 assertEquals(2, CodedOutputStream.encodeZigZag32( 1));
220 assertEquals(3, CodedOutputStream.encodeZigZag32(-2));
221 assertEquals(0x7FFFFFFE, CodedOutputStream.encodeZigZag32(0x3FFFFFFF));
222 assertEquals(0x7FFFFFFF, CodedOutputStream.encodeZigZag32(0xC0000000));
223 assertEquals(0xFFFFFFFE, CodedOutputStream.encodeZigZag32(0x7FFFFFFF));
224 assertEquals(0xFFFFFFFF, CodedOutputStream.encodeZigZag32(0x80000000));
246 CodedOutputStream.encodeZigZag32(CodedInputStream.decodeZigZag32(0)))
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/micro/
CodedOutputStreamMicro.java 389 writeRawVarint32(encodeZigZag32(value));
742 return computeRawVarint32Size(encodeZigZag32(value));
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/
CodedOutputStream.java 414 writeRawVarint32(encodeZigZag32(value));
778 return computeRawVarint32Size(encodeZigZag32(value));
    [all...]

Completed in 880 milliseconds