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:
parent
fa9870db96
commit
f6dd1371bf
5 changed files with 70 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue