ConstVoidPtr¶
-
public interface
ConstVoidPtr
¶ Constant Void pointer interface.
Methods¶
forceFree¶
-
public void
forceFree
()¶ Frees the memory space pointed to by this pointer without doing any security checks on the pointer’s state and ownership. Calling this method on a pointer which was already freed will result in an
UnsupportedOperationException
exception. Freeing a pointer which is not owned by the caller will result in undefined behavior!
free¶
-
public void
free
()¶ Frees the memory space pointed to by this pointer. Calling this method on a pointer which was already freed or the owner is a different object will result in an
UnsupportedOperationException
exception. Freeing a pointer which is not owned by the caller will result in undefined behavior! This method is only necessary when working with weak - not owned - pointers.
getBoolPtr¶
-
public ConstBoolPtr
getBoolPtr
()¶ Returns a boolean pointer pointing to the same location.
Returns: new boolean pointer (NON-GUARDED)
getBytePtr¶
-
public ConstBytePtr
getBytePtr
()¶ Returns a boolean pointer pointing to the same location.
Returns: new boolean pointer (NON-GUARDED)
getCharPtr¶
-
public ConstCharPtr
getCharPtr
()¶ Returns a short pointer pointing to the same location.
Returns: new short pointer (NON-GUARDED)
getDepth¶
-
public int
getDepth
()¶ Returns the indirection count of the pointer. For example IntPtr will return 1, Ptr<IntPtr> will return 2.
Returns: the indirection count of the pointer
getDoublePtr¶
-
public ConstDoublePtr
getDoublePtr
()¶ Returns a double pointer pointing to the same location.
Returns: new double pointer (NON-GUARDED)
getFloatPtr¶
-
public ConstFloatPtr
getFloatPtr
()¶ Returns a float pointer pointing to the same location.
Returns: new float pointer (NON-GUARDED)
getIntPtr¶
-
public ConstIntPtr
getIntPtr
()¶ Returns a character pointer pointing to the same location.
Returns: new character pointer (NON-GUARDED)
getLongPtr¶
-
public ConstLongPtr
getLongPtr
()¶ Returns a long pointer pointing to the same location.
Returns: new long pointer (NON-GUARDED)
getNFloatPtr¶
-
public ConstNFloatPtr
getNFloatPtr
()¶ Returns a NFloat pointer pointing to the same location.
Returns: new NFloat pointer (NON-GUARDED)
getNIntPtr¶
-
public ConstNIntPtr
getNIntPtr
()¶ Returns a NInt pointer pointing to the same location.
Returns: new NInt pointer (NON-GUARDED)
getNLongPtr¶
-
public ConstNLongPtr
getNLongPtr
()¶ Returns a NLong pointer pointing to the same location.
Returns: new NLong pointer (NON-GUARDED)
getNUIntPtr¶
-
public ConstNUIntPtr
getNUIntPtr
()¶ Returns a NUInt pointer pointing to the same location.
Returns: new NUInt pointer (NON-GUARDED)
getNULongPtr¶
-
public ConstNULongPtr
getNULongPtr
()¶ Returns a NULong pointer pointing to the same location.
Returns: new NULong pointer (NON-GUARDED)
getPeer¶
getShortPtr¶
-
public ConstShortPtr
getShortPtr
()¶ Returns a byte pointer pointing to the same location.
Returns: new byte pointer (NON-GUARDED)
isConstPtr¶
-
public boolean
isConstPtr
()¶ Returns
true
if the pointer is constant type. Calling methods which would write to the pointer will result in anUnsupportedOperationException
exception.Returns: true
if the pointer is constant type