struct
Crabbit::AMQP::Decimal
- Crabbit::AMQP::Decimal
- Struct
- Value
- Object
Overview
Opaque IEEE 754 decimal interchange bytes.
AMQP decimal32, decimal64, and decimal128 values contain 4, 8, and 16 bytes respectively. Crabbit preserves their wire representation without numeric conversion.
Defined in:
crabbit/amqp/value.crConstructors
-
.new(bytes : Bytes, expected_size : Int32)
Creates an opaque decimal value and validates its exact expected_size.
Instance Method Summary
-
#bytes : Bytes
Returns the decimal interchange bytes owned by this value.
Constructor Detail
def self.new(bytes : Bytes, expected_size : Int32)
#
Creates an opaque decimal value and validates its exact expected_size.