Home
last modified time | relevance | path

Searched refs:GPBEncodeZigZag32 (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/objectivec/Tests/
DGPBCodedOuputStreamTests.m261 XCTAssertEqual(0U, GPBEncodeZigZag32(0));
262 XCTAssertEqual(1U, GPBEncodeZigZag32(-1));
263 XCTAssertEqual(2U, GPBEncodeZigZag32(1));
264 XCTAssertEqual(3U, GPBEncodeZigZag32(-2));
265 XCTAssertEqual(0x7FFFFFFEU, GPBEncodeZigZag32(0x3FFFFFFF));
266 XCTAssertEqual(0x7FFFFFFFU, GPBEncodeZigZag32(0xC0000000));
267 XCTAssertEqual(0xFFFFFFFEU, GPBEncodeZigZag32(0x7FFFFFFF));
268 XCTAssertEqual(0xFFFFFFFFU, GPBEncodeZigZag32(0x80000000));
289 XCTAssertEqual(0U, GPBEncodeZigZag32(GPBDecodeZigZag32(0)));
290 XCTAssertEqual(1U, GPBEncodeZigZag32(GPBDecodeZigZag32(1)));
[all …]
/external/protobuf/objectivec/
DGPBUtilities_PackagePrivate.h114 GPB_INLINE uint32_t GPBEncodeZigZag32(int32_t n) { in GPBEncodeZigZag32() function
DGPBCodedOutputStream.m413 GPBWriteRawVarint32(&state_, GPBEncodeZigZag32(value));
418 GPBWriteRawVarint32(&state_, GPBEncodeZigZag32(value));
1081 return GPBComputeRawVarint32Size(GPBEncodeZigZag32(value));