bytes->getRange
Returns a range of bytes.
Target
Signature
1bytes->getRange(position::integer, num::integer)Returns a range of bytes.
bytes->getRange is called with member syntax on a receiver value. bytes->getRange works with binary values. Convert strings to bytes before byte-level hashing or encoding, then convert back to a string only for display or transport.
Parameters
position- Required value of type
integer. Supplypositionpositionally unless the signature shows a keyword form. num- Required value of type
integer. Supplynumpositionally unless the signature shows a keyword form.
Examples
Basic call
1bytes('abcdef')->getRange(2, 3)The example keeps binary work on bytes and converts only when text output is needed.