seasonder_int_to_raw | R Documentation |
This function converts an integer to a raw byte representation using a 64-bit (8-byte) format.
It leverages the bit64
package to handle the 64-bit integer representation and conversion.
seasonder_int_to_raw(x)
x |
An integer to be converted to raw bytes. |
The function follows these steps:
Convert the integer to a 64-bit format using bit64::as.integer64
.
Convert the 64-bit integer to a bit string.
Split the bit string into individual bits.
Reorder the bits into groups of 8, reversing the order within each group.
Convert the reordered bits back to raw bytes.
A raw vector representing the 64-bit format of the provided integer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.