zanmato1984 commented on PR #48180: URL: https://github.com/apache/arrow/pull/48180#issuecomment-3611785936
> I thought that we need to convert to little endian. But is my assumption wrong...? If so, my suggested code was wrong. Sorry. Thanks for explaining. I'm not sure either. My assumption is that by `SafeLoad/Store` we need to preserve the machine endian. That is for example: ``` uint64_t value = SafeLoad(bytes); uint8_t *p_value = reinterprete_cast<uint8_t *>(&value); assert(p_value[0] == bytes[0]); assert(p_value[1] == bytes[1]); ... assert(p_value[7] == bytes[7]); ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
