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

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

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

revision 1.6 by ericb, Fri Nov 15 14:24:48 2002 UTC revision 1.7 by mkoch, Sat Nov 16 15:22:16 2002 UTC
# Line 160  public class FileChannelImpl extends Fil Line 160  public class FileChannelImpl extends Fil
160          return res;          return res;
161      }      }
162                                                                        
163      public MappedByteBuffer map (FileChannel.MapMode mode, long position,
164                                           long size)
165      public MappedByteBuffer map(java.nio.channels.FileChannel.MapMode mode,      throws IOException
166                                  long  position,    {
167                                  int  size) throws IOException  //     int cmode = mode.m;
168      {  //     address = nio_mmap_file (fd, position, size, cmode);
169          int cmode = mode.m;  //     length = size;
170    //     buf = new MappedByteFileBuffer (this);
171          address = nio_mmap_file(fd, position, size, cmode);  //     return buf;
172        return null;
173          length = size;    }
   
         //      System.out.println("file mapped" + address + "length="+length);  
   
         buf = new MappedByteFileBuffer(this);  
         return buf;  
     }  
174    
175      static MappedByteBuffer create_direct_mapped_buffer(long address,      static MappedByteBuffer create_direct_mapped_buffer(long address,
176                                                          long length)                                                          long length)

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