Skip to content

Home / node / Commands / classes / SignedEncoding @valkey/valkey-glide


@valkey/valkey-glide / Commands / SignedEncoding

Class: SignedEncoding

Represents a signed argument encoding.

Implements

Constructors

Constructor

new SignedEncoding(encodingLength): SignedEncoding

Creates an instance of SignedEncoding.

Parameters

encodingLength

number

The bit size of the encoding. Must be less than 65 bits long.

Returns

SignedEncoding

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.

Implementation of

BitEncoding.toArg