54 |
{ |
{ |
55 |
this.backing_buffer = new float[cap]; |
this.backing_buffer = new float[cap]; |
56 |
this.cap = cap; |
this.cap = cap; |
|
this.position(off); |
|
57 |
this.limit(lim); |
this.limit(lim); |
58 |
|
this.position(off); |
59 |
} |
} |
60 |
|
|
61 |
public FloatBufferImpl(float[] array, int off, int lim) |
public FloatBufferImpl(float[] array, int off, int lim) |
62 |
{ |
{ |
63 |
this.backing_buffer = array; |
this.backing_buffer = array; |
64 |
this.cap = array.length; |
this.cap = array.length; |
|
this.position(off); |
|
65 |
this.limit(lim); |
this.limit(lim); |
66 |
|
this.position(off); |
67 |
} |
} |
68 |
|
|
69 |
public FloatBufferImpl(FloatBufferImpl copy) |
public FloatBufferImpl(FloatBufferImpl copy) |
70 |
{ |
{ |
71 |
backing_buffer = copy.backing_buffer; |
backing_buffer = copy.backing_buffer; |
72 |
ro = copy.ro; |
ro = copy.ro; |
|
position(copy.position()); |
|
73 |
limit(copy.limit()); |
limit(copy.limit()); |
74 |
|
position(copy.position()); |
75 |
} |
} |
76 |
|
|
77 |
void inc_pos(int a) |
void inc_pos(int a) |