BitConstants class final

Bit manipulation and masking constants for binary operations.

This file contains constants used for low-level bit manipulation, byte masking, and binary data processing operations throughout the SDK. These constants are primarily used in XDR encoding/decoding and cryptographic operations where precise bit-level control is required.

Note: This class cannot be instantiated. All constants are static and should be accessed directly via the class name.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

int64MaxValueBigInt → BigInt
Maximum value for a signed 64-bit integer, as BigInt (web-safe).
final
int64MinValueBigInt → BigInt
Minimum value for a signed 64-bit integer, as BigInt (web-safe).
final
uint64Mask → int
64-bit unsigned integer mask as int (native platforms only).
no setter
uint64MaskBigInt → BigInt
64-bit unsigned integer mask as BigInt (web-safe).
final

Constants

ASCII_CR → const int
ASCII Carriage Return character (CR, '\r').
ASCII_LF → const int
ASCII Line Feed character (LF, '\n').
BITS_PER_BYTE → const int
Number of bits in a byte.
BYTE_MASK → const int
Byte mask for extracting lower 8 bits.
BYTES_PER_INT64 → const int
Number of bytes in a 64-bit integer.
BYTES_PER_INT128 → const int
Number of bytes in a 128-bit integer.
BYTES_PER_INT256 → const int
Number of bytes in a 256-bit integer.
CRC16_INITIAL → const int
CRC16 initial value.
CRC16_MASK → const int
CRC16 mask for 16-bit values.
INT32_MAX_VALUE → const int
Maximum value for 32-bit signed integer.
INT32_MIN_VALUE → const int
Minimum value for a signed 32-bit integer.
SIGN_BIT_MASK → const int
Sign bit mask for byte operations.
ZERO_FILL → const int
Zero byte fill value.