public final class Page extends Object
Modifier and Type | Method and Description |
---|---|
int |
avail(int position) |
void |
close() |
void |
get(byte[] dst,
int offset,
int readPosition,
int length) |
byte |
getByte(int readPosition) |
int |
getInt(int readPosition) |
int |
getIntVolatile(int readPosition) |
int |
length() |
void |
put(int position,
byte[] bytes,
int start,
int length) |
void |
putByte(int currentWritePosition,
byte b) |
void |
putInt(int writePosition,
int value) |
void |
putIntOrdered(int writePosition,
int value) |
public Page(File file, int pageSize)
public int length()
public void put(int position, byte[] bytes, int start, int length)
public void putIntOrdered(int writePosition, int value)
public void putInt(int writePosition, int value)
public void get(byte[] dst, int offset, int readPosition, int length)
public int getIntVolatile(int readPosition)
public void close()
public int avail(int position)
public int getInt(int readPosition)
public void putByte(int currentWritePosition, byte b)
public byte getByte(int readPosition)
Copyright © 2013–2020. All rights reserved.