Skip to main content

encode_money

Function encode_money 

Source
pub fn encode_money(value: Decimal, buf: &mut BytesMut) -> Result<(), TypeError>
Expand description

Encode a decimal as MONEY (8 bytes): the signed 64-bit scaled integer is written as the high 32 bits LE followed by the low 32 bits LE, per MS-TDS §2.2.5.5.1.2.