Skip to content

Commit

Permalink
Fixes issue #1 : Bug on NativeBuffer offset
Browse files Browse the repository at this point in the history
  • Loading branch information
chirino committed Nov 22, 2011
1 parent e6608bc commit 765789f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public NativeBuffer(byte data[], int offset, int length) {
super(NativeBufferJNI.malloc(length));
this.capacity = length;
this.retained = new AtomicInteger(1);
write(0, data, 0, length);
write(0, data, offset, length);
}

private NativeBuffer(NativeBuffer other, long offset, long capacity) {
Expand Down

0 comments on commit 765789f

Please sign in to comment.