seasonder_int_to_raw {SeaSondeR}R Documentation

Convert an integer to raw bytes using a 64-bit representation

Description

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.

Usage

seasonder_int_to_raw(x)

Arguments

x

An integer to be converted to raw bytes.

Details

The function follows these steps:

  1. Convert the integer to a 64-bit format using bit64::as.integer64.

  2. Convert the 64-bit integer to a bit string.

  3. Split the bit string into individual bits.

  4. Reorder the bits into groups of 8, reversing the order within each group.

  5. Convert the reordered bits back to raw bytes.

Value

A raw vector representing the 64-bit format of the provided integer.


[Package SeaSondeR version 0.2.8 Index]