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

Diff of /classpath/java/nio/MappedByteBufferImpl.java

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

revision 1.10.2.2 by gnu_andrew, Sun Jan 16 02:14:48 2005 UTC revision 1.10.2.3 by gnu_andrew, Sun Jan 16 15:15:12 2005 UTC
# Line 45  import java.io.IOException; Line 45  import java.io.IOException;
45  final class MappedByteBufferImpl extends MappedByteBuffer  final class MappedByteBufferImpl extends MappedByteBuffer
46  {  {
47    boolean readOnly;    boolean readOnly;
   RawData address;  
48    
49    /** Posix uses this for the pointer returned by mmap;    /** Posix uses this for the pointer returned by mmap;
50     * Win32 uses it for the pointer returned by MapViewOfFile. */     * Win32 uses it for the pointer returned by MapViewOfFile. */
# Line 118  final class MappedByteBufferImpl extends Line 117  final class MappedByteBufferImpl extends
117    
118    public ByteBuffer compact()    public ByteBuffer compact()
119    {    {
120        checkIfReadOnly();
121        mark = -1;
122      int pos = position();      int pos = position();
123      if (pos > 0)      if (pos > 0)
124        {        {
# Line 127  final class MappedByteBufferImpl extends Line 128  final class MappedByteBufferImpl extends
128          position(count);          position(count);
129          limit(capacity());          limit(capacity());
130        }        }
131        else
132          {
133            position(limit());
134            limit(capacity());
135          }
136      return this;      return this;
137    }    }
138    

Legend:
Removed from v.1.10.2.2  
changed lines
  Added in v.1.10.2.3

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