| description | Learn more about: Binary.Range |
|---|---|
| title | Binary.Range |
| ms.topic | reference |
| ms.subservice | m-source |
Binary.Range(
binary as binary,
offset as number,
optional count as nullable number
) as binary
Returns a subset of the binary value beginning at the offset binary. An optional parameter, offset, sets the maximum length of the subset.
Returns a subset of the binary value starting at offset 6.
Usage
Binary.Range(#binary({0..10}), 6)
Output
#binary({6, 7, 8, 9, 10})
Returns a subset of length 2 from offset 6 of the binary value.
Usage
Binary.Range(#binary({0..10}), 6, 2)
Output
#binary({6, 7})