public class FSTTypedStructAllocator<T extends FSTStruct> extends FSTStructAllocator
chunk, chunkIndex, chunkSize| Constructor and Description |
|---|
FSTTypedStructAllocator(int chunkSizeBytes,
T template)
Create a Structallocator for the given template.
|
FSTTypedStructAllocator(int chunkSizeBytes,
T template,
BytezAllocator alloc)
see super class ..
|
FSTTypedStructAllocator(T ontpl)
Create a Structallocator for the given template.
|
FSTTypedStructAllocator(T ontpl,
int objectsPerChunk)
Create a Structallocator for the given template.
|
FSTTypedStructAllocator(T ontpl,
int objectsPerChunk,
BytezAllocator alloc)
Create a Structallocator for the given template.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getTemplateSize() |
StructArray<T> |
newArray(int size)
create a new struct array of same type as template
|
<K extends FSTStruct> |
newMap(int size,
K keyTemplate)
create a fixed size struct hashmap.
|
T |
newStruct() |
allocInstance, createStructPointer, free, getFactory, getVolatileStructPointer, newArray, newArray, newMap, newPointer, newStruct, newStruct, toStructpublic FSTTypedStructAllocator(T ontpl)
ontpl - public FSTTypedStructAllocator(T ontpl, int objectsPerChunk)
ontpl - objectsPerChunk - public FSTTypedStructAllocator(T ontpl, int objectsPerChunk, BytezAllocator alloc)
ontpl - objectsPerChunk - public FSTTypedStructAllocator(int chunkSizeBytes,
T template)
template - chunkSizeBytes - public FSTTypedStructAllocator(int chunkSizeBytes,
T template,
BytezAllocator alloc)
chunkSizeBytes - template - alloc - public StructArray<T> newArray(int size)
size - public <K extends FSTStruct> StructMap<K,T> newMap(int size, K keyTemplate)
K - size - keyTemplate - public T newStruct()
public int getTemplateSize()
Copyright © 2014. All rights reserved.