switchEndianess: Switch Endianess.

Description Usage Arguments Value See Also Examples

Description

Switch little-endian to big-endian and vice versa.

Usage

1
switchEndianess(x, stickyBits=FALSE)

Arguments

x

binary number. Any binary number.

stickyBits

Bits wont change if set TRUE. Only the attribute will be switched.

Value

switch little-endian to big-endian and vice versa.

See Also

negate or fillUpToByte.

Examples

1
2
3
x <- as.binary(c(1,1,0,0), logic=TRUE); print(x); summary(x);
y <- switchEndianess(x); print(y); summary(y);
y <- switchEndianess(x, stickyBits=TRUE); print(y); summary(y);

d4ndo/binaryLogic documentation built on May 14, 2019, 3:05 p.m.