------------------------------------------------------------------------------------------------
| 138 | |
| 139 | // ------------------------------------------------------------------------------------------------ |
| 140 | uint8_t ReadByte(const char* input, const char*& cursor, const char* end) { |
| 141 | if(Offset(cursor, end) < sizeof( uint8_t ) ) { |
| 142 | TokenizeError("cannot ReadByte, out of bounds",input, cursor); |
| 143 | } |
| 144 | |
| 145 | uint8_t word;/* = *reinterpret_cast< const uint8_t* >( cursor )*/ |
| 146 | ::memcpy( &word, cursor, sizeof( uint8_t ) ); |
| 147 | ++cursor; |
| 148 | |
| 149 | return word; |
| 150 | } |
| 151 | |
| 152 | // ------------------------------------------------------------------------------------------------ |
| 153 | unsigned int ReadString(const char*& sbegin_out, const char*& send_out, const char* input, |
no test coverage detected