Home
last modified time | relevance | path

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

/external/protobuf/objectivec/Tests/
DGPBCodedInputStreamTests.m65 XCTAssertEqual(0, GPBDecodeZigZag32(0));
66 XCTAssertEqual(-1, GPBDecodeZigZag32(1));
67 XCTAssertEqual(1, GPBDecodeZigZag32(2));
68 XCTAssertEqual(-2, GPBDecodeZigZag32(3));
69 XCTAssertEqual((int32_t)0x3FFFFFFF, GPBDecodeZigZag32(0x7FFFFFFE));
70 XCTAssertEqual((int32_t)0xC0000000, GPBDecodeZigZag32(0x7FFFFFFF));
71 XCTAssertEqual((int32_t)0x7FFFFFFF, GPBDecodeZigZag32(0xFFFFFFFE));
72 XCTAssertEqual((int32_t)0x80000000, GPBDecodeZigZag32(0xFFFFFFFF));
DGPBCodedOuputStreamTests.m289 XCTAssertEqual(0U, GPBEncodeZigZag32(GPBDecodeZigZag32(0)));
290 XCTAssertEqual(1U, GPBEncodeZigZag32(GPBDecodeZigZag32(1)));
291 XCTAssertEqual(-1U, GPBEncodeZigZag32(GPBDecodeZigZag32(-1)));
292 XCTAssertEqual(14927U, GPBEncodeZigZag32(GPBDecodeZigZag32(14927)));
293 XCTAssertEqual(-3612U, GPBEncodeZigZag32(GPBDecodeZigZag32(-3612)));
/external/protobuf/objectivec/
DGPBUtilities_PackagePrivate.h98 GPB_INLINE int32_t GPBDecodeZigZag32(uint32_t n) { in GPBDecodeZigZag32() function
DGPBCodedInputStream.m183 int32_t value = GPBDecodeZigZag32(ReadRawVarint32(state));