shadow:natives

Class Pointer

Parent class

shadow:standard@Object

immutable locked class Pointer

Create Summary

Modifiers Return Types Method and Description
public () create()

Destroy Summary

Modifiers Return Types Method and Description
public () destroy()

Method Summary

Modifiers Return Types Method and Description
public readonly locked () assertValid(String className)

Throws an exception if this Pointer has been freed.

public readonly (Pointer) copy(AddressMap addresses)
public readonly locked () free()

Frees the memory allocated by this pointer.

Property Summary

Modifiers Return Types Method and Description
public readonly get locked (boolean) isValid()

Gets whether this pointer is valid.

Create Detail

create

public create() => ()

Destroy Detail

destroy

public destroy() => ()

Method Detail

assertValid

public readonly locked assertValid(String className) => ()

Throws an exception if this Pointer has been freed.

Throws

FreedResourceException - if this resource has been freed.

copy

public readonly copy(AddressMap addresses) => (Pointer)

free

public readonly locked free() => ()

Frees the memory allocated by this pointer. Calling this method more than once does not have any side effects.

Property Detail

isValid

public readonly get locked isValid() => (boolean)

Gets whether this pointer is valid. i.e. has not been freed.

Returns

true if this pointer points to valid memory; otherwise, false.