Extracts multiple values from a packed 64-bit value according to specified bit widths.
Examples
packed <- ffi_pack_bits64(c(1L, 5L, 12L), c(1L, 3L, 4L))
ffi_unpack_bits64(packed, c(1L, 3L, 4L)) # c(1, 5, 12)
#> [1] 1 5 12
Extracts multiple values from a packed 64-bit value according to specified bit widths.
packed <- ffi_pack_bits64(c(1L, 5L, 12L), c(1L, 3L, 4L))
ffi_unpack_bits64(packed, c(1L, 3L, 4L)) # c(1, 5, 12)
#> [1] 1 5 12