LEFTB

The LEFTB function outputs the first (left) N bytes specified by the Count property.

Input/Output

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

OutputData TypeDescription
Output1BinaryThe selected data.

Property

NameProperty TypeDescription
CountintSpecifies the number of bytes to output. Return the byte array with size 0, if Count is set to 0.
Return whole data, if Count is bigger than the input data's length.

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.

Example

PropertyOutput
Input10x82A082A282A4Count20x82A0