Learn R Programming

bitstreamio (version 0.1.0)

is_bs: Test if an object is a bitstream object

Description

Test if an object is a bitstream object

Usage

is_bs(x)

Value

logical. TRUE if object is a bitstream object

Arguments

x

object to test

Examples

Run this code
# 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)

Run the code above in your browser using DataLab