/[classpath]/classpath/gnu/java/nio/ByteBufferImpl.java
ViewVC logotype

Diff of /classpath/gnu/java/nio/ByteBufferImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mark, Tue Apr 30 21:37:26 2002 UTC revision 1.7 by mkoch, Wed Nov 13 09:19:39 2002 UTC
# Line 39  package gnu.java.nio; Line 39  package gnu.java.nio;
39  import java.nio.*;  import java.nio.*;
40  public final class ByteBufferImpl extends java.nio. ByteBuffer  public final class ByteBufferImpl extends java.nio. ByteBuffer
41  {  {
42      private byte[] backing_buffer;
43      private int array_offset;      private int array_offset;
44      private boolean ro;      private boolean ro;
45    public ByteBufferImpl(int cap, int off, int lim)    public ByteBufferImpl(int cap, int off, int lim)
46      {      {
47        this.backing_buffer = new byte[cap];        this.backing_buffer = new byte[cap];
48        this.capacity(cap);        this.cap = cap;
49        this.position(off);        this.position(off);
50        this.limit(lim);        this.limit(lim);
51      }      }
52    public ByteBufferImpl(byte[] array, int off, int lim)    public ByteBufferImpl(byte[] array, int off, int lim)
53      {      {
54        this.backing_buffer = array;        this.backing_buffer = array;
55        this.capacity(array.length);        this.cap = array.length;
56        this.position(off);        this.position(off);
57        this.limit(lim);        this.limit(lim);
58      }      }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26