constructor
[ Function ]
public constructor(endianness = TcHmi.Endianness.LittleEndian, length?: number)
Creates a new Base64BinaryReader.
Parameter
Name | Type | Description |
---|---|---|
endianness [ optional ] | The byte order in which data is to be stored in the Base64 string. If this parameter is not specified, the default value LittleEndian is used. | |
length [ optional ] | The length of the data in bytes to be written. If this parameter is specified, errors are triggered when an attempt is made to write data that exceeds the specified length. If getEncodedString is called before the specified length is reached, the remaining bytes are filled with 0. |
Sample - JavaScript
var writer = new TcHmi.Base64BinaryWriter();
var writerBigEndian = new TcHmi.Base64BinaryWriter(TcHmi.Endianness.BigEndian);
var writerFixedLength = new TcHmi.Base64BinaryWriter(TcHmi.Endianness.LittleEndian, 20);
Available from version 1.10 |