Function aerospike::operations::bitwise::lshift
source · pub fn lshift<'a>(
bin: &'a str,
bit_offset: i64,
bit_size: i64,
shift: i64,
policy: &'a BitPolicy
) -> Operation<'a>
Expand description
Creates bit “left shift” operation. Server shifts left byte[] bin starting at bitOffset for bitSize. Server does not return a value.
Example:
bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
bitOffset = 32
bitSize = 8
shift = 3
bin result = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00101000]