BitExp Resize Method Aerospike
Create expression that resizes byte[] to byteSize according to resizeFlags (See BitResizeFlags) and returns byte[].
  • bin = [0b00000001, 0b01000010]
  • byteSize = 4
  • resizeFlags = 0
  • returns [0b00000001, 0b01000010, 0b00000000, 0b00000000]

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 4.1.1.0 (4.1.1)
Syntax

Examples

// Resize bin "a" and compare bit count
Exp.EQ(
  BitExp.Count(Exp.Val(0), Exp.Val(3),
    BitExp.Resize(BitPolicy.Default, Exp.Val(4), BitResizeFlags.DEFAULT, Exp.BlobBin("a"))),
  Exp.Val(2))
See Also