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

Method writeFloat

Core/CodedOutputData.cpp:48–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void CodedOutputData::writeFloat(float value) {
49 this->writeRawLittleEndian32(Float32ToInt32(value));
50}
51
52void CodedOutputData::writeInt64(int64_t value) {
53 this->writeRawVarint64(value);

Callers 2

setMethod · 0.80
getEncodeDataMethod · 0.80

Calls 2

Float32ToInt32Function · 0.85

Tested by

no test coverage detected