BitExpResize Method

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]

Definition

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

Parameters

policy  BitPolicy
 
byteSize  Exp
 
resizeFlags  Int32
 
bin  Exp
 

Return Value

Exp

Example

C#
// 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