WillAyd commented on PR #1288:
URL: https://github.com/apache/arrow-adbc/pull/1288#issuecomment-1811320056

   @lidavidm just want to make sure I have the right conceptual model on how 
decimal numbers get stored across multiple words. Assuming I had a really long 
sequence like `12345678901234567890` is this the proper way to construct and 
populate that decimal?
   
   ```c
     const uint64_t large_decimal[2] = {1, 2345678901234567890};
     uint8_t large_decimal_bytes[16];
     std::memcpy(&large_decimal_bytes, large_decimal, 
sizeof(large_decimal_bytes));
     ArrowDecimalSetBytes(&decimal6, large_decimal_bytes);
   ```
   Or do I need to worry about the endianness of the platform when defining 
`large_decimal`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to