Home / node / Commands / classes / UnsignedEncoding @valkey/valkey-glide
@valkey/valkey-glide / Commands / UnsignedEncoding
Class: UnsignedEncoding
Represents an unsigned argument encoding.
Implements
Constructors
Constructor
new UnsignedEncoding(
encodingLength
):UnsignedEncoding
Creates an instance of UnsignedEncoding.
Parameters
encodingLength
number
The bit size of the encoding. Must be less than 64 bits long.
Returns
UnsignedEncoding
Methods
toArg()
toArg():
string
Returns the encoding as a string argument to be used in the bitfield or bitfieldReadOnly commands.
Returns
string
The encoding as a string argument.