| 107 | } |
| 108 | |
| 109 | int8_t DataView::getInt8(uint32_t offset) const { |
| 110 | offset += _byteOffset; |
| 111 | CC_ASSERT_LT(offset, _byteEndPos); |
| 112 | |
| 113 | return static_cast<int8_t>(_data[offset]); |
| 114 | } |
| 115 | |
| 116 | int16_t DataView::getInt16(uint32_t offset) const { |
| 117 | offset += _byteOffset; |