chainline-contracts / chainline.contracts / HubContract / range

range

fun ByteArray.range(index: Int, count: Int): ByteArray (source)

Extracts a range of bytes from a ByteArray.

Parameters

index - the index to start at

count - the number of bytes to extract, starting at index

Return
the extracted bytes