Data Block Processing Functions

This section describes expression language functions related to processing binary data blocks.

Function

Description

Result Type

Backend Support

Frontend Support

byteAt(DataBlock data, Integer index)

Returns the integer value of the byte at the specified index in the data Data Block.

Integer

Yes

No

bytes(DataBlock data, Integer beginIndex [, Integer endIndex])

Returns a new Data Block that is a sub-block of the data Data Block, starting from beginIndex and ending at endIndex.

Data Block

Yes

No

copyBytes(DataBlock source, Integer sourceIndex, DataBlock target, Integer targetIndex, Integer length)

Copies a range of bytes from the source data block to the target data block. The copy starts at sourceIndex in the source and data is inserted at targetIndex in the target, length bytes are copied. This function modifies the target data block and updates its internal state accordingly.

Data Block

Yes

No

Was this page helpful?