public boolean isNull() { return getClzId() <= 0; }
public boolean pointsToNull() { return getClzId() <= 0; }
public boolean pointsToNull() { return getClzId() <= 0; }
public boolean isNull() { return getClzId() <= 0; }
public void detach(FSTStruct structPointer) { int id = structPointer.getClzId(); Object o = cachedWrapperMap.get()[id]; if ( o == structPointer ) cachedWrapperMap.get()[id] = null; }
public void detach(FSTStruct structPointer) { int id = structPointer.getClzId(); Object o = cachedWrapperMap.get()[id]; if ( o == structPointer ) cachedWrapperMap.get()[id] = null; }
/** * @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; }
public Class getPointedClass() { if (!isOffHeap()) throw new RuntimeException("cannot call on heap"); Class clazz = ___fac.getClazz(getClzId()); if (clazz == null) { return FSTStruct.class; } return clazz; }
/** * @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; }
public Class getPointedClass() { if (!isOffHeap()) throw new RuntimeException("cannot call on heap"); Class clazz = ___fac.getClazz(getClzId()); if (clazz == null) { return FSTStruct.class; } return clazz; }