Constructs a new instance of NumericKind.
Optional
maxBytes: numberOptional parameter that specifies the maximum number of bytes that numeric data can occupy when encoded.
Optional
Readonly
maxOptional parameter that specifies the maximum number of bytes that numeric data can occupy when encoded.
Decodes the input buffer into a number or hexadecimal string, ensuring it meets numeric data constraints.
The buffer to decode, containing numeric data.
Descriptive context for error messages.
BufferOutput object with a decode function.
Encodes the input data into numeric format and ensures it doesn't exceed the maximum bytes, if specified.
The data to encode, expected to be numeric.
Descriptive context for error messages
DataOutput object with an encode function.
Represents a scalar kind with numeric functionality. This class extends the ScalarKind class.