struct

Crabbit::AMQP::Decimal

Inherits Struct < Value < Object

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.

Constructors

new(bytes : Bytes, expected_size : Int32)

Creates an opaque decimal value and validates its exact expected_size.

Source

Instance methods

bytes

Returns the decimal interchange bytes owned by this value.

Source