public class FSTStruct extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
byte[] |
___bytes |
int |
___elementSize |
FSTStructFactory |
___fac |
long |
___offset |
static long |
bufoff |
static sun.misc.Unsafe |
unsafe |
| Constructor and Description |
|---|
FSTStruct() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOffset(long off) |
void |
baseOn(byte[] base,
int index)
set this struct pointer to base array at given index
|
void |
baseOn(byte[] base,
long offset,
FSTStructFactory fac)
set this struct pointer to base array at given offset (=bufoff+index)
|
FSTStruct |
cast() |
<T extends FSTStruct> |
cast(Class<T> to) |
FSTStruct |
createCopy()
returns a complete copy of this object allocating a new byte[] capable of holding the data.
|
FSTStruct |
detach()
important: iterators, array access and access to substructures of a struct always return
pointers, which are cached per thread.
|
protected long |
getAbsoluteOffset() |
byte[] |
getBase() |
byte |
getByte() |
void |
getBytes(byte[] target,
int startIndex) |
int |
getByteSize() |
char |
getChar() |
int |
getClzId() |
double |
getDouble() |
int |
getElementInArraySize() |
FSTStructFactory |
getFac() |
float |
getFloat() |
int |
getIndexInBase()
Deprecated.
use getOffset
see getOffset
|
int |
getInt() |
long |
getLong() |
int |
getOffset() |
Class |
getPointedClass() |
short |
getShort() |
protected sun.misc.Unsafe |
getUnsafe() |
boolean |
isIdenticTo(FSTStruct other) |
boolean |
isNull() |
boolean |
isOffHeap() |
boolean |
isStructArrayPointer() |
void |
next()
Warning: no bounds checking.
|
void |
next(int offset)
Warning: no bounds checking.
|
boolean |
pointsToNull() |
void |
previous()
Warning: no bounds checking.
|
protected void |
setAbsoluteOffset(long off)
must include bytearray offset in case of unsafe use
|
protected void |
setBase(byte[] base) |
void |
setByte(byte i) |
void |
setBytes(byte[] source,
int sourceIndex,
int len) |
void |
setInt(int i) |
void |
setLong(long i) |
void |
setShort(short i) |
public static sun.misc.Unsafe unsafe
public static long bufoff
public transient long ___offset
public transient byte[] ___bytes
public transient FSTStructFactory ___fac
public transient int ___elementSize
protected sun.misc.Unsafe getUnsafe()
protected void setAbsoluteOffset(long off)
off - protected long getAbsoluteOffset()
public int getOffset()
public int getIndexInBase()
public int getByteSize()
public Class getPointedClass()
public int getClzId()
public boolean pointsToNull()
protected void addOffset(long off)
protected void setBase(byte[] base)
public byte[] getBase()
public FSTStructFactory getFac()
public void baseOn(byte[] base,
long offset,
FSTStructFactory fac)
base - offset - direct offset to byte array element (=FSTStruct.bufoff+array index)public void baseOn(byte[] base,
int index)
base - index - public boolean isIdenticTo(FSTStruct other)
public boolean isOffHeap()
public int getElementInArraySize()
public boolean isStructArrayPointer()
public boolean isNull()
public FSTStruct detach()
public final void next()
public final void next(int offset)
public final void previous()
public FSTStruct cast()
public byte getByte()
public void setByte(byte i)
public char getChar()
public short getShort()
public void setShort(short i)
public int getInt()
public void setInt(int i)
public long getLong()
public void setLong(long i)
public float getFloat()
public double getDouble()
public void getBytes(byte[] target,
int startIndex)
public void setBytes(byte[] source,
int sourceIndex,
int len)
public FSTStruct createCopy()
Copyright © 2013. All rights reserved.