REPLACEB

The REPLACEB function replaces the specified section of bytes from the input data with the specified replacement data.

Input/Output

Number of Connections: Min: 2/Max:4
InputData TypeDescription
Input1BinaryThe original data.
Input2BinaryThe replacement data.
Input3IntegerSets the Offset property. (optional)
Input4IntegerSets the Count property. (optional)

OutputData TypeDescription
Output1BinaryThe new, modified data.

Property

NameProperty TypeDescription
OffsetintThe offset, in bytes, from the start of the input data from which byte data is selected. The first byte in the input data is "1".
CountintThe number of bytes to select.

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
Input10x616569Offset30x61656F75
Input20x6F75Count2