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

Method getInt32

native/cocos/core/DataView.cpp:123–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123int32_t DataView::getInt32(uint32_t offset) const {
124 offset += _byteOffset;
125 CC_ASSERT(offset < (_byteEndPos - 3));
126
127 return *reinterpret_cast<int32_t *>(_data + offset);
128}
129
130float DataView::getFloat32(uint32_t offset) const {
131 offset += _byteOffset;

Callers 5

getReaderFunction · 0.80
readIntMethod · 0.80
readIntArrayMethod · 0.80
parseMethod · 0.80
getReaderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected