2003-05-10 Michael Koch <konqueror@gmx.de>
* java/nio/CharBuffer.java (offset): Make it package-private. (backing_buffer): Likewise. * java/nio/DoubleBuffer.java (offset): Make it package-private. (backing_buffer): Likewise. (put): Reformatted. * java/nio/FloatBuffer.java (offset): Make it package-private. (backing_buffer): Likewise. * java/nio/IntBuffer.java (offset): Make it package-private. (backing_buffer): Likewise. * java/nio/LongBuffer.java (offset): Make it package-private. (backing_buffer): Likewise. * java/nio/ShortBuffer.java (offset): Make it package-private. (backing_buffer): Likewise. From-SVN: r66657
This commit is contained in:
parent
c363e02d01
commit
ddf87cfafa
7 changed files with 35 additions and 13 deletions
|
@ -1,3 +1,25 @@
|
||||||
|
2003-05-10 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
|
* java/nio/CharBuffer.java
|
||||||
|
(offset): Make it package-private.
|
||||||
|
(backing_buffer): Likewise.
|
||||||
|
* java/nio/DoubleBuffer.java
|
||||||
|
(offset): Make it package-private.
|
||||||
|
(backing_buffer): Likewise.
|
||||||
|
(put): Reformatted.
|
||||||
|
* java/nio/FloatBuffer.java
|
||||||
|
(offset): Make it package-private.
|
||||||
|
(backing_buffer): Likewise.
|
||||||
|
* java/nio/IntBuffer.java
|
||||||
|
(offset): Make it package-private.
|
||||||
|
(backing_buffer): Likewise.
|
||||||
|
* java/nio/LongBuffer.java
|
||||||
|
(offset): Make it package-private.
|
||||||
|
(backing_buffer): Likewise.
|
||||||
|
* java/nio/ShortBuffer.java
|
||||||
|
(offset): Make it package-private.
|
||||||
|
(backing_buffer): Likewise.
|
||||||
|
|
||||||
2003-05-10 Michael Koch <konqueror@gmx.de>
|
2003-05-10 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* java/nio/CharBuffer.java
|
* java/nio/CharBuffer.java
|
||||||
|
|
|
@ -45,8 +45,8 @@ import gnu.java.nio.CharBufferImpl;
|
||||||
public abstract class CharBuffer extends Buffer
|
public abstract class CharBuffer extends Buffer
|
||||||
implements Comparable, CharSequence
|
implements Comparable, CharSequence
|
||||||
{
|
{
|
||||||
protected int array_offset = 0;
|
int array_offset = 0;
|
||||||
protected char [] backing_buffer;
|
char[] backing_buffer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allocates a new <code>CharBuffer</code> object with a given capacity.
|
* Allocates a new <code>CharBuffer</code> object with a given capacity.
|
||||||
|
|
|
@ -41,8 +41,8 @@ import gnu.java.nio.DoubleBufferImpl;
|
||||||
|
|
||||||
public abstract class DoubleBuffer extends Buffer implements Comparable
|
public abstract class DoubleBuffer extends Buffer implements Comparable
|
||||||
{
|
{
|
||||||
protected double [] backing_buffer;
|
int array_offset;
|
||||||
protected int array_offset;
|
double[] backing_buffer;
|
||||||
|
|
||||||
public static DoubleBuffer allocateDirect(int capacity)
|
public static DoubleBuffer allocateDirect(int capacity)
|
||||||
{
|
{
|
||||||
|
@ -108,7 +108,7 @@ public abstract class DoubleBuffer extends Buffer implements Comparable
|
||||||
public DoubleBuffer put (double[] src, int offset, int length)
|
public DoubleBuffer put (double[] src, int offset, int length)
|
||||||
{
|
{
|
||||||
for (int i = offset; i < offset + length; i++)
|
for (int i = offset; i < offset + length; i++)
|
||||||
put(src[i]);
|
put (src [i]);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,8 +41,8 @@ import gnu.java.nio.FloatBufferImpl;
|
||||||
|
|
||||||
public abstract class FloatBuffer extends Buffer implements Comparable
|
public abstract class FloatBuffer extends Buffer implements Comparable
|
||||||
{
|
{
|
||||||
protected float [] backing_buffer;
|
int array_offset;
|
||||||
protected int array_offset;
|
float[] backing_buffer;
|
||||||
|
|
||||||
public static FloatBuffer allocateDirect(int capacity)
|
public static FloatBuffer allocateDirect(int capacity)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,8 @@ import gnu.java.nio.IntBufferImpl;
|
||||||
|
|
||||||
public abstract class IntBuffer extends Buffer implements Comparable
|
public abstract class IntBuffer extends Buffer implements Comparable
|
||||||
{
|
{
|
||||||
protected int [] backing_buffer;
|
int array_offset;
|
||||||
protected int array_offset;
|
int[] backing_buffer;
|
||||||
|
|
||||||
public static IntBuffer allocateDirect(int capacity)
|
public static IntBuffer allocateDirect(int capacity)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,8 @@ import gnu.java.nio.LongBufferImpl;
|
||||||
|
|
||||||
public abstract class LongBuffer extends Buffer implements Comparable
|
public abstract class LongBuffer extends Buffer implements Comparable
|
||||||
{
|
{
|
||||||
protected long [] backing_buffer;
|
int array_offset;
|
||||||
protected int array_offset;
|
long[] backing_buffer;
|
||||||
|
|
||||||
public static LongBuffer allocateDirect(int capacity)
|
public static LongBuffer allocateDirect(int capacity)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,8 @@ import gnu.java.nio.ShortBufferImpl;
|
||||||
|
|
||||||
public abstract class ShortBuffer extends Buffer implements Comparable
|
public abstract class ShortBuffer extends Buffer implements Comparable
|
||||||
{
|
{
|
||||||
protected short [] backing_buffer;
|
int array_offset;
|
||||||
protected int array_offset;
|
short[] backing_buffer;
|
||||||
|
|
||||||
public static ShortBuffer allocateDirect(int capacity)
|
public static ShortBuffer allocateDirect(int capacity)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue