BitExpResize 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: 5.1.1.0 (5.1.1)
Syntax

C#
public static Exp Resize(
	BitPolicy policy,
	Exp byteSize,
	int resizeFlags,
	Exp bin
)

Parameters

policy
Type: Aerospike.ClientBitPolicy
byteSize
Type: Aerospike.ClientExp
resizeFlags
Type: SystemInt32
bin
Type: Aerospike.ClientExp

Return Value

Type: Exp
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

Reference