public void baseOn(Bytez base, int index) { ___bytes = base; ___offset = index; if (___fac == null) ___fac = FSTStructFactory.getInstance(); }
protected FSTStructFactory getFactory() { return FSTStructFactory.getInstance(); }
public void baseOn(Bytez base, int index) { ___bytes = base; ___offset = index; if (___fac == null) ___fac = FSTStructFactory.getInstance(); }
protected FSTStructFactory getFactory() { return FSTStructFactory.getInstance(); }
/** * set this struct pointer to base array at given index * * @param base * @param index */ public void baseOn(byte base[], int index) { ___bytes = new HeapBytez(base); ___offset = index; if (___fac == null) ___fac = FSTStructFactory.getInstance(); }
/** * @param onHeapTemplate * @param <T> * @return return a byte array based struct instance for given on-heap template. Allocates a new byte[] with each call */ public static <T extends FSTStruct> T toStruct(T onHeapTemplate) { return FSTStructFactory.getInstance().toStruct(onHeapTemplate); }
/** * @param b * @param index * @return a pointer matching struct type stored in b[] from the thread local cache */ public static FSTStruct getVolatileStructPointer(Bytez b, int index) { return (FSTStruct) FSTStructFactory.getInstance().getStructPointerByOffset(b, index); }
/** * @param onHeapTemplate * @param <T> * @return return a byte array based struct instance for given on-heap template. Allocates a new byte[] with each call */ public static <T extends FSTStruct> T toStruct(T onHeapTemplate) { return FSTStructFactory.getInstance().toStruct(onHeapTemplate); }
/** * @param b * @param index * @return a pointer matching struct type stored in b[] from the thread local cache */ public static FSTStruct getVolatileStructPointer(Bytez b, int index) { return (FSTStruct) FSTStructFactory.getInstance().getStructPointerByOffset(b, index); }
/** * set this struct pointer to base array at given index * * @param base * @param index */ public void baseOn(byte base[], int index) { ___bytes = new HeapBytez(base); ___offset = index; if (___fac == null) ___fac = FSTStructFactory.getInstance(); }
/** * @param b * @param index * @return a new allocated pointer matching struct type stored in b[] */ public static FSTStruct createStructPointer(Bytez b, int index) { return FSTStructFactory.getInstance().getStructPointerByOffset(b, index).detach(); }
public FSTStruct toOffHeap() { if (isOffHeap()) return this; return FSTStructFactory.getInstance().toStruct(this); }
public FSTStruct toOffHeap() { if (isOffHeap()) return this; return FSTStructFactory.getInstance().toStruct(this); }
/** * @param b * @param index * @return a new allocated pointer matching struct type stored in b[] */ public static FSTStruct createStructPointer(Bytez b, int index) { return FSTStructFactory.getInstance().getStructPointerByOffset(b, index).detach(); }
protected static <C extends FSTStruct> Object allocInstance(Class<C> clazz) throws Exception { return FSTUtil.getUnsafe().allocateInstance(FSTStructFactory.getInstance().getProxyClass(clazz)); // return FSTStructFactory.getInstance().getProxyClass(clazz).newInstance(); }
protected static <C extends FSTStruct> Object allocInstance(Class<C> clazz) throws Exception { return FSTUtil.getUnsafe().allocateInstance(FSTStructFactory.getInstance().getProxyClass(clazz)); // return FSTStructFactory.getInstance().getProxyClass(clazz).newInstance(); }
if (onHeapStructClz == null) onHeapStructClz = Class.forName(clName, false, conf.getClassLoader() ); res = FSTStructFactory.getInstance().getProxyClass(onHeapStructClz); } catch (Throwable th1) { FSTUtil.<RuntimeException>rethrow(th1);
if (onHeapStructClz == null) onHeapStructClz = Class.forName(clName, false, conf.getClassLoader() ); res = FSTStructFactory.getInstance().getProxyClass(onHeapStructClz); } catch (Throwable th1) { FSTUtil.<RuntimeException>rethrow(th1);
return FSTStructFactory.getInstance().createStructWrapper(hb, 0);
return FSTStructFactory.getInstance().createStructWrapper(hb, 0);