RIGHTB

The RIGHTB function outputs the last (right) 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 select from the end of the input data. 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
Input10x6165696F75Count20x6F75