mirror of
https://github.com/TheOfficialFloW/bd-jb
synced 2024-11-25 10:22:15 -05:00
Add Buffer.put implementation.
This commit is contained in:
parent
3347cbb544
commit
05adae5e31
@ -79,6 +79,11 @@ public class Buffer {
|
|||||||
api.write64(address + offset, value);
|
api.write64(address + offset, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void put(int offset, Buffer buffer) {
|
||||||
|
checkOffset(offset, buffer.size());
|
||||||
|
api.memcpy(address + offset, buffer.address(), buffer.size());
|
||||||
|
}
|
||||||
|
|
||||||
public void fill(byte value) {
|
public void fill(byte value) {
|
||||||
api.memset(address, value, size);
|
api.memset(address, value, size);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user