Bytes object
Bytes is an array of bytes.
| Constants |
|
N/A |
| Properties |
| [index] |
- integer, element of the array at the index position, read-write index accessor. Zero-based integer index. |
| length |
- integer, read-only, number of bytes in the byte vector. |
| type |
- any, could be used for any purposes but sciter uses it to report mime-type (string) of the data received by request() method |
| Methods |
| [new Bytes] |
( numBytes: integer )
Constructs object of type Bytes - sequence of bytes of numBytes length. |
| toString |
( ) returns: string
Returns base64 representation of the byte vector. |
| save |
( filename:string ) returns: true|false
Saves content of the byte vector into the file. If file exists then it will be overwritten. |
| load |
( filename:string ) returns: Bytes
Static method. Creates new Bytes object, loads file into it and returns that object. |
|