R/binary.R
bytesNeeded.Rd
A simple helper function that returns the minimum number of byte needed to hold the amount of n bit.
bytesNeeded(n)
The number of bit.
The number of minimum byte needed to hold n bit.
fillUpToByte or byte
ten <- as.binary(10) rdiversity:::bytesNeeded(length(ten)) #> [1] 1