MCPcopy Create free account
hub / github.com/cocos/cocos-engine / setInt32

Method setInt32

native/cocos/core/DataView.cpp:172–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void DataView::setInt32(uint32_t offset, int32_t value) {
173 offset += _byteOffset;
174 CC_ASSERT(offset < _byteEndPos - 3);
175
176 *reinterpret_cast<int32_t *>(_data + offset) = value;
177}
178
179void DataView::setFloat32(uint32_t offset, float value) {
180 offset += _byteOffset;

Callers 6

getWriterFunction · 0.45
writeInt32Method · 0.45
writeIntArrayMethod · 0.45
writeStringMethod · 0.45
getWriterFunction · 0.45
writeBufferFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected