Browse Source

Add Buffer.put implementation.

master
Andy Nguyen 11 months ago
parent
commit
05adae5e31
  1. 5
      src/com/bdjb/api/Buffer.java

5
src/com/bdjb/api/Buffer.java

@ -79,6 +79,11 @@ public class Buffer { @@ -79,6 +79,11 @@ public class Buffer {
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) {
api.memset(address, value, size);
}

Loading…
Cancel
Save