Skip to content

shiftLeft

shiftLeft(binary, positions) → binary · Binary

Shift bits left by the specified number of positions.

  • binary (required): binary data

  • positions (required): number of positions to shift

utlx
shiftLeft(toBinary("A", "UTF-8"), 2)     // bits shifted left by 2

Released under AGPL-3.0.