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

Diff of /classpath/java/nio/DirectByteBufferImpl.java

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

revision 1.11 by robilad, Wed Jun 16 08:57:10 2004 UTC revision 1.12 by mkoch, Wed Nov 17 12:01:31 2004 UTC
# Line 52  final class DirectByteBufferImpl extends Line 52  final class DirectByteBufferImpl extends
52        }        }
53    }    }
54        
55    /** Used by MappedByteBufferImpl to prevent premature GC. */    /** Used by MappedByteBufferImpl and when slicing to prevent premature GC. */
56    protected Object owner;    protected Object owner;
57    
58    RawData address;    RawData address;
# Line 73  final class DirectByteBufferImpl extends Line 73  final class DirectByteBufferImpl extends
73      this.owner = owner;      this.owner = owner;
74    }    }
75    
76      /**
77       * Allocates a new direct byte buffer.
78       */
79      public static ByteBuffer allocate(int capacity)
80      {
81        return new DirectByteBufferImpl(allocateImpl(capacity), capacity);
82      }
83    
84    private static native RawData allocateImpl (int capacity);    private static native RawData allocateImpl (int capacity);
85    private static native void freeImpl (RawData address);    private static native void freeImpl (RawData address);
86        

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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