44 |
public FloatBufferImpl(int cap, int off, int lim) |
public FloatBufferImpl(int cap, int off, int lim) |
45 |
{ |
{ |
46 |
this.backing_buffer = new float[cap]; |
this.backing_buffer = new float[cap]; |
47 |
this.capacity(cap); |
this.cap = cap; |
48 |
this.position(off); |
this.position(off); |
49 |
this.limit(lim); |
this.limit(lim); |
50 |
} |
} |
51 |
public FloatBufferImpl(float[] array, int off, int lim) |
public FloatBufferImpl(float[] array, int off, int lim) |
52 |
{ |
{ |
53 |
this.backing_buffer = array; |
this.backing_buffer = array; |
54 |
this.capacity(array.length); |
this.cap = array.length; |
55 |
this.position(off); |
this.position(off); |
56 |
this.limit(lim); |
this.limit(lim); |
57 |
} |
} |