NumberUint8ArrayStringFileTypeNumberNumberBooleanBooleanPutFilePutFilePutFilePutFilePutFilePutFilePutFilePutFileNumberGet the Crc
Kind: Instance method of PutFile
Returns: Number - the KEY_CRC value
Uint8ArrayGet the file data.
Kind: Instance method of PutFile
Returns: Uint8Array - A byte array of the file contents.
StringGet the FileName
Kind: Instance method of PutFile
Returns: String - the KEY_FILE_NAME value
FileTypeGet the FileType
Kind: Instance method of PutFile
Returns: FileType - the KEY_FILE_TYPE value
NumberGet the Length
Kind: Instance method of PutFile
Returns: Number - the KEY_LENGTH value
NumberGet the Offset
Kind: Instance method of PutFile
Returns: Number - the KEY_OFFSET value
BooleanGet the PersistentFile
Kind: Instance method of PutFile
Returns: Boolean - the KEY_PERSISTENT_FILE value
BooleanGet the SystemFile
Kind: Instance method of PutFile
Returns: Boolean - the KEY_SYSTEM_FILE value
PutFileSet the Crc
Kind: Instance method of PutFile
Returns: PutFile - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| crc | Number |
Additional CRC32 checksum to protect data integrity up to 512 Mbits - The desired Crc. {'num_min_value': 0, 'num_max_value': 4294967295} |
PutFileSet the file data.
Kind: Instance method of PutFile
Returns: PutFile - The class instance to support method chaining.
| Param | Type | Description |
|---|---|---|
| fileData | Uint8Array |
A byte array of the file contents. |
PutFileSet the FileName
Kind: Instance method of PutFile
Returns: PutFile - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| name | String |
File reference name. - The desired FileName. {'string_min_length': 1, 'string_max_length': 255} |
PutFileSet the FileType
Kind: Instance method of PutFile
Returns: PutFile - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| type | FileType |
Selected file type. - The desired FileType. |
PutFileSet the Length
Kind: Instance method of PutFile
Returns: PutFile - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| length | Number |
Optional length in bytes for resuming partial data chunks If offset is set to 0, then length is the total length of the file to be downloaded - The desired Length. {'num_min_value': 0, 'num_max_value': 2000000000} |
PutFileSet the Offset
Kind: Instance method of PutFile
Returns: PutFile - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| offset | Number |
Optional offset in bytes for resuming partial data chunks - The desired Offset. {'num_min_value': 0, 'num_max_value': 2000000000} |
PutFileSet the PersistentFile
Kind: Instance method of PutFile
Returns: PutFile - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| file | Boolean |
Indicates if the file is meant to persist between sessions / ignition cycles. If set to TRUE, then the system will aim to persist this file through session / cycles. While files with this designation will have priority over others, they are subject to deletion by the system at any time. In the event of automatic deletion by the system, the app will receive a rejection and have to resend the file. If omitted, the value will be set to false. - The desired PersistentFile. {'default_value': False} |
PutFileSet the SystemFile
Kind: Instance method of PutFile
Returns: PutFile - The class instance for method chaining.
| Param | Type | Description |
|---|---|---|
| file | Boolean |
Indicates if the file is meant to be passed thru core to elsewhere on the system. If set to TRUE, then the system will instead pass the data thru as it arrives to a predetermined area outside of core. If omitted, the value will be set to false. - The desired SystemFile. {'default_value': False} |