Function aerospike::operations::bitwise::set
source · pub fn set<'a>(
bin: &'a str,
bit_offset: i64,
bit_size: i64,
value: &'a Value,
policy: &'a BitPolicy
) -> Operation<'a>
Expand description
Creates bit “set” operation. Server sets value on byte[] bin at bitOffset for bitSize. Server does not return a value.
Example:
bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
bitOffset = 13
bitSize = 3
value = [0b11100000]
bin result = [0b00000001, 0b01000111, 0b00000011, 0b00000100, 0b00000101]