pub fn deserialize(bytes: [u8; 16]) -> Decimal {
        Decimal {
            flags: (bytes[0] as i32) | (bytes[1] as i32) << 8 | (bytes[2] as i32) << 16 | (bytes[3] as i32) << 24,
            lo: (bytes[4] as i32) | (bytes[5] as i32) << 8 | (bytes[6] as i32) << 16 | (bytes[7] as i32) << 24,
            mid: (bytes[8] as i32) | (bytes[9] as i32) << 8 | (bytes[10] as i32) << 16 | (bytes[11] as i32) << 24,
            hi: (bytes[12] as i32) | (bytes[13] as i32) << 8 | (bytes[14] as i32) << 16 | (bytes[15] as i32) << 24,
        }
    }
/// Deserializes the given bytes into a decimal number.
/// The deserialized byte representation must be 16 bytes and adhere to the followign convention:
///
/// * Bytes 1-4: flags
/// * Bytes 5-8: lo portion of `m`
/// * Bytes 9-12: mid portion of `m`
/// * Bytes 13-16: high portion of `m`
Deserializes the given bytes into a decimal number.
The deserialized byte representation must be 16 bytes and adhere to the followign convention.


Deserializes the given bytes into a decimal number . The deserialized byte representation must be 16 bytes and adhere to the followign convention .
pub fn deserialize(bytes: [u8; 16]) -> Decimal {
        Decimal {
            flags: (bytes[0] as i32) | (bytes[1] as i32) << 8 | (bytes[2] as i32) << 16 | (bytes[3] as i32) << 24,
            lo: (bytes[4] as i32) | (bytes[5] as i32) << 8 | (bytes[6] as i32) << 16 | (bytes[7] as i32) << 24,
            mid: (bytes[8] as i32) | (bytes[9] as i32) << 8 | (bytes[10] as i32) << 16 | (bytes[11] as i32) << 24,
            hi: (bytes[12] as i32) | (bytes[13] as i32) << 8 | (bytes[14] as i32) << 16 | (bytes[15] as i32) << 24,
        }
    }
pub fn deserialize ( bytes : [ u8 ; 16 ] ) -> Decimal { Decimal { flags : ( bytes [ 0 ] as i32 ) | ( bytes [ 1 ] as i32 ) << 8 | ( bytes [ 2 ] as i32 ) << 16 | ( bytes [ 3 ] as i32 ) << 24 , lo : ( bytes [ 4 ] as i32 ) | ( bytes [ 5 ] as i32 ) << 8 | ( bytes [ 6 ] as i32 ) << 16 | ( bytes [ 7 ] as i32 ) << 24 , mid : ( bytes [ 8 ] as i32 ) | ( bytes [ 9 ] as i32 ) << 8 | ( bytes [ 10 ] as i32 ) << 16 | ( bytes [ 11 ] as i32 ) << 24 , hi : ( bytes [ 12 ] as i32 ) | ( bytes [ 13 ] as i32 ) << 8 | ( bytes [ 14 ] as i32 ) << 16 | ( bytes [ 15 ] as i32 ) << 24 , } }
Deserializes the given bytes into a decimal number.
Deserializes the given bytes into a decimal number .
bytes
[u8; 16]
bytes
[u8; 16]