struct Crabbit::AMQP::Decimal

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(bytes : Bytes, expected_size : Int32) #

Creates an opaque decimal value and validates its exact expected_size.


[View source]

Instance Method Detail

def bytes : Bytes #

Returns the decimal interchange bytes owned by this value.


[View source]