MCPcopy Create free account
hub / github.com/Tencent/MMKV / writeInt32

Method writeInt32

Core/CodedOutputData.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void CodedOutputData::writeInt32(int32_t value) {
61 if (value >= 0) {
62 this->writeRawVarint32(value);
63 } else {
64 this->writeRawVarint64(value);
65 }
66}
67
68void CodedOutputData::writeUInt32(uint32_t value) {
69 writeRawVarint32(static_cast<int32_t>(value));

Callers 2

setMethod · 0.80
writeRootObjectMethod · 0.80

Calls 2

writeRawVarint32Method · 0.95
writeRawVarint64Method · 0.95

Tested by

no test coverage detected