/[classpath]/classpath/java/nio/LongViewBufferImpl.java
ViewVC logotype

Diff of /classpath/java/nio/LongViewBufferImpl.java

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

revision 1.5 by robilad, Wed Jun 16 08:57:10 2004 UTC revision 1.5.2.1 by gnu_andrew, Sun Jan 16 15:15:12 2005 UTC
# Line 53  final class LongViewBufferImpl extends L Line 53  final class LongViewBufferImpl extends L
53      this.offset = bb.position();      this.offset = bb.position();
54      this.readOnly = bb.isReadOnly();      this.readOnly = bb.isReadOnly();
55      this.endian = bb.order();      this.endian = bb.order();
56        if (bb.isDirect())
57          this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset);
58    }    }
59        
60    public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity,    public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity,
# Line 64  final class LongViewBufferImpl extends L Line 66  final class LongViewBufferImpl extends L
66      this.offset = offset;      this.offset = offset;
67      this.readOnly = readOnly;      this.readOnly = readOnly;
68      this.endian = endian;      this.endian = endian;
69        if (bb.isDirect())
70          this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset);
71    }    }
72    
73    /**    /**
# Line 116  final class LongViewBufferImpl extends L Line 120  final class LongViewBufferImpl extends L
120          position (count);          position (count);
121          limit (capacity ());          limit (capacity ());
122        }        }
123        else
124          {
125            position(limit());
126            limit(capacity());
127          }
128      return this;      return this;
129    }    }
130        

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.2.1

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