is_bs {bitstreamio}R Documentation

Test if an object is a bitstream object

Description

Test if an object is a bitstream object

Usage

is_bs(x)

Arguments

x

object to test

Value

logical. TRUE if object is a bitstream object

Examples

# Negative case
is_bs(NULL)

# Positive case
raw_vec <- as.raw(1:3)
bs  <- bs_open(raw_vec, 'r')
is_bs(bs)
bs_close(bs)

[Package bitstreamio version 0.1.0 Index]