BitExpRemove Method

Create expression that removes bytes from byte[] bin at byteOffset for byteSize and returns byte[].
  • bin = [0b00000001, 0b01000010, 0b00000011, 0b00000100, 0b00000101]
  • byteOffset = 2
  • byteSize = 3
  • bin result = [0b00000001, 0b01000010]

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp Remove(
	BitPolicy policy,
	Exp byteOffset,
	Exp byteSize,
	Exp bin
)

Parameters

policy  BitPolicy
 
byteOffset  Exp
 
byteSize  Exp
 
bin  Exp
 

Return Value

Exp

Example

C#
// Remove bytes from bin "a" and compare bit count
Exp.EQ(
  BitExp.Count(Exp.Val(0), Exp.Val(3),
    BitExp.Remove(BitPolicy.Default, Exp.Val(2), Exp.Val(3), Exp.BlobBin("a"))),
  Exp.Val(2))

See Also