HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file io.compute.ArrayInt by ben
expand copy to clipboardexpand
uses Compute

/*
{"description" : "This interface represents a integer type array stored on an external compute device"}
*/
interface ArrayInt extends ExtMemory {

    /* {"@description" : "Creates the array with the given length on the given Compute device"} */
    ArrayInt(store Compute device, int length)

    /* {"@description" : "Writes to the array starting at index 0 up to the length of the host array given by content"} */
    void write(int content[])

    /* {"@description" : "Reads the entire array stored on the external Compute device, returns this as a host array"} */
    int[] read()
    
}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n io.compute.ArrayInt -m "reason for update" -u yourUsername
Version 1 (this version) by ben
Notes for this version: Standard Library Initialisation