public final class FSTObjectRegistry extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
OBJ_DIVISOR |
static int |
POS_MAP_SIZE |
| Constructor and Description |
|---|
FSTObjectRegistry(FSTConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearForRead() |
void |
clearForWrite() |
void |
clearFully() |
int |
getObjectSize() |
Object |
getReadRegisteredObject(int handle) |
void |
registerObjectForRead(Object o,
int streamPosition) |
int |
registerObjectForWrite(Object o,
int streamPosition,
FSTClazzInfo clzInfo,
int[] reUseType)
add an object to the register, return handle if already present.
|
void |
replace(Object old,
Object replaced,
int streamPos) |
public static final int OBJ_DIVISOR
public static int POS_MAP_SIZE
public FSTObjectRegistry(FSTConfiguration conf)
public void clearFully()
public void clearForRead()
public void clearForWrite()
public Object getReadRegisteredObject(int handle)
public void registerObjectForRead(Object o, int streamPosition)
public int registerObjectForWrite(Object o, int streamPosition, FSTClazzInfo clzInfo, int[] reUseType)
o - streamPosition - public int getObjectSize()
Copyright © 2015. All rights reserved.