/** * returns a struct wrapper for given structured object from the thread local wrapper cache. * @param b * @param index * @return */ public FSTStruct getStructPointer(Bytez b, long index) { return getStructPointerByOffset(b,index); }
/** * returns a struct wrapper for given structured object from the thread local wrapper cache. * @param b * @param index * @return */ public FSTStruct getStructPointer(Bytez b, long index) { return getStructPointerByOffset(b,index); }
/** * @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); }
/** * @return a volatile pointer of the exact type this points to */ public <T extends FSTStruct> T cast() { int clzId = getClzId(); if (___fac.getClazz(clzId) == getClass().getSuperclass()) return (T) this; FSTStruct res = ___fac.getStructPointerByOffset(___bytes, ___offset); res.___elementSize = ___elementSize; return (T) res; }
/** * @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 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(); }
/** * @return a volatile pointer of the exact type this points to */ public <T extends FSTStruct> T cast() { int clzId = getClzId(); if (___fac.getClazz(clzId) == getClass().getSuperclass()) return (T) this; FSTStruct res = ___fac.getStructPointerByOffset(___bytes, ___offset); res.___elementSize = ___elementSize; return (T) res; }
/** * @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(); }