1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix bug #36: never directly use *(int32_t*) to convert, for arm may not support

This commit is contained in:
winlin 2014-05-08 12:12:01 +08:00
parent fa9870db96
commit f6dd1371bf
5 changed files with 70 additions and 18 deletions

View file

@ -232,3 +232,11 @@ void SrsStream::write_string(std::string value)
p += value.length();
}
void SrsStream::write_bytes(char* data, int size)
{
srs_assert(require(size));
memcpy(p, data, size);
p += size;
}