You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Core: Drop custom copymem/zeromem defines
We've been using standard C library functions `memcpy`/`memset` for these since
2016 with 67f65f6639.
There was still the possibility for third-party platform ports to override the
definitions with a custom header, but this doesn't seem useful anymore.
Backport of #48239.
This commit is contained in:
@@ -444,7 +444,7 @@ Error StreamPeerBuffer::put_data(const uint8_t *p_data, int p_bytes) {
|
||||
}
|
||||
|
||||
PoolVector<uint8_t>::Write w = data.write();
|
||||
copymem(&w[pointer], p_data, p_bytes);
|
||||
memcpy(&w[pointer], p_data, p_bytes);
|
||||
|
||||
pointer += p_bytes;
|
||||
return OK;
|
||||
@@ -479,7 +479,7 @@ Error StreamPeerBuffer::get_partial_data(uint8_t *p_buffer, int p_bytes, int &r_
|
||||
}
|
||||
|
||||
PoolVector<uint8_t>::Read r = data.read();
|
||||
copymem(p_buffer, r.ptr() + pointer, r_received);
|
||||
memcpy(p_buffer, r.ptr() + pointer, r_received);
|
||||
|
||||
pointer += r_received;
|
||||
// FIXME: return what? OK or ERR_*
|
||||
|
||||
Reference in New Issue
Block a user