38 |
|
|
39 |
package java.nio; |
package java.nio; |
40 |
|
|
41 |
import gnu.classpath.RawData; |
import gnu.classpath.Pointer; |
42 |
|
|
43 |
import java.io.IOException; |
import java.io.IOException; |
44 |
|
|
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. */ |
51 |
public RawData implPtr; |
public Pointer implPtr; |
52 |
/** Posix uses this for the actual length passed to mmap; |
/** Posix uses this for the actual length passed to mmap; |
53 |
* Win32 uses it for the pointer returned by CreateFileMapping. */ |
* Win32 uses it for the pointer returned by CreateFileMapping. */ |
54 |
public long implLen; |
public long implLen; |
55 |
|
|
56 |
public MappedByteBufferImpl(RawData address, int size, boolean readOnly) |
public MappedByteBufferImpl(Pointer address, int size, boolean readOnly) |
57 |
throws IOException |
throws IOException |
58 |
{ |
{ |
59 |
super(size, size, 0, -1); |
super(size, size, 0, -1); |