nativeStorageMethods-class {externalVector}R Documentation

Class "nativeStorageMethods", class holding an external pointer to a C storeageMethods structure.

Description

This simple class has only one purpose - holding an external pointer that contains a pointer to a C storageMethods structure. The memory for the C structure is allocated by the "gcAllocator" memory allocator.

Objects from the Class

Objects can be created by calls of the form new("nativeStorageMethods", ...). For details on how the ... argument to new works, see documentation for the "initialize" method for class "externalResource".

The ptr slot in a newly created object contains pointer to an uninitialized C storageMethods structure.

Slots

ptr:
Object of class "externalptr"

Extends

Class "externalResource", directly.

Methods

Signature components of the methods:

resource The class "nativeStorageMethods"
ptr The class "externalptr"
size The class "ANY"
type The class "ANY"

Description of the methods:

allocatedSize(resource):
Returns the size of the C storageMethods structure in bytes.
allocator(resource):
Returns an object of class "gcAllocator".
getPointer(reource):
Return the ptr slot.
initializeResource(resource, ptr, size, type, ...):
Sets the ptr

See Also

nativeStorageMethodsList-class for how this class is used.

externalResource-class for more on the super class of this class.


[Package externalVector version 1.0.14 Index]