Number
Uint8Array
String
FileType
Number
Number
Boolean
Boolean
PutFile
PutFile
PutFile
PutFile
PutFile
PutFile
PutFile
PutFile
Number
Get the Crc
Kind: Instance method of PutFile
Returns: Number
- the KEY_CRC value
Uint8Array
Get the file data.
Kind: Instance method of PutFile
Returns: Uint8Array
- A byte array of the file contents.
String
Get the FileName
Kind: Instance method of PutFile
Returns: String
- the KEY_FILE_NAME value
FileType
Get the FileType
Kind: Instance method of PutFile
Returns: FileType
- the KEY_FILE_TYPE value
Number
Get the Length
Kind: Instance method of PutFile
Returns: Number
- the KEY_LENGTH value
Number
Get the Offset
Kind: Instance method of PutFile
Returns: Number
- the KEY_OFFSET value
Boolean
Get the PersistentFile
Kind: Instance method of PutFile
Returns: Boolean
- the KEY_PERSISTENT_FILE value
Boolean
Get the SystemFile
Kind: Instance method of PutFile
Returns: Boolean
- the KEY_SYSTEM_FILE value
PutFile
Set 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} |
PutFile
Set 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. |
PutFile
Set 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} |
PutFile
Set 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. |
PutFile
Set 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} |
PutFile
Set 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} |
PutFile
Set 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} |
PutFile
Set 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} |