public class Mmap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
APR_MMAP_READ
MMap opened for reading
|
static int |
APR_MMAP_WRITE
MMap opened for writing
|
Constructor and Description |
---|
Mmap() |
Modifier and Type | Method and Description |
---|---|
static long |
create(long file,
long offset,
long size,
int flag,
long pool)
Create a new mmap'ed file out of an existing APR file.
|
static int |
delete(long mm)
Remove a mmap'ed.
|
static long |
dup(long mmap,
long pool)
Duplicate the specified MMAP.
|
static long |
offset(long mm,
long offset)
Move the pointer into the mmap'ed file to the specified offset.
|
public static final int APR_MMAP_READ
public static final int APR_MMAP_WRITE
public static long create(long file, long offset, long size, int flag, long pool) throws Error
file
- The file turn into an mmap.offset
- The offset into the file to start the data pointer at.size
- The size of the fileflag
- bit-wise or of:
APR_MMAP_READ MMap opened for reading APR_MMAP_WRITE MMap opened for writing
pool
- The pool to use when creating the mmap.Error
public static long dup(long mmap, long pool) throws Error
mmap
- The mmap to duplicate.pool
- The pool to use for new_mmap.Error
public static int delete(long mm)
mm
- The mmap'ed file.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.