| 265 | } |
| 266 | |
| 267 | static bool ReadAMFLongStringBody(std::string* str, AMFInputStream* stream) { |
| 268 | uint32_t len = 0; |
| 269 | if (stream->cut_u32(&len) != 4u) { |
| 270 | LOG(ERROR) << "stream is not long enough"; |
| 271 | return false; |
| 272 | } |
| 273 | str->resize(len); |
| 274 | if (len != 0 && stream->cutn(&(*str)[0], len) != len) { |
| 275 | LOG(ERROR) << "stream is not long enough"; |
| 276 | return false; |
| 277 | } |
| 278 | return true; |
| 279 | } |
| 280 | |
| 281 | bool ReadAMFString(std::string* str, AMFInputStream* stream) { |
| 282 | uint8_t marker; |
no test coverage detected