TRUNCATEB

The TRUNCATEB function truncates the specified number of bytes from an input binary stream.

Input/Output

Number of Connections: Min: 1/Max:2
InputData TypeDescription
Input1BinaryThe original data.
Input2IntegerSets the Length property. (optional)

OutputData TypeDescription
Output1BinaryThe truncated data.

Property

NameProperty TypeDescription
StartFromchoice Specifies the direction from which truncation is to be performed.
Left [true] - truncate the left portion of the input data
Right [false] - truncate the right portion of the input data
LengthintSpecifies the number of bytes to be truncated.

Topic

How a Binary function handles byte conversions

The Binary Functions LEFTB, RIGHTB, MIDB, REPLACEB and TRUNCATEB handle input binary data as it is. If binary data cannot be successfully converted back to a string, an empty string is output.

Examples

PropertyOutput
Input10x6165696F75StartFromLeft0x696F75
Length2