LF: Copy Buffer to Tag, Tag to Buffer

Use this function to copy bytes from a Buffer to a Data Tag.

Copy Buffer to Tag

 

Parameter Name

Purpose

A

Source Buffer

Select the Buffer containing the bytes you want to copy.

B

Offset in Buffer

Determines the start byte for the copy operation.

C

Data Length (in bytes)

Determines the number of bytes to be copied, starting from the Offset.
Note that if the Data Destination tag is not long enough to contain the data, the operation will not be carried out.

D

Data Tag (destination)

This is the data tag that will hold the copied bytes.

 

Copy Tag to Buffer

Use this function to copy a Data Tag to a Buffer.

 

Parameter Name

Purpose

A

Data Tag, Source

Select the tag you want to copy.
The function copies the entire tag.

B

Offset in Buffer

Determines the start byte in the buffer. The data tag is copied into the buffer beginning from this byte.

C

Operation Type

Select whether to

  • Overwrite the data in the buffer

  • Insert the data into the buffer. This will cause the data in the buffer to shift right.

D

Data Tag (destination)

This is the data tag that will hold the copied bytes.