R/memFormat.R

Defines functions memFormat is.memFormat

Documented in memFormat

# A memFormat is a list of memBlock's  

is.memFormat <- function(x) {
    inherits(x, "memFormat")
}

memFormat <- function(...) {
    blocks <- list(...)
    if (!all(sapply(blocks, is.memBlock)))
        stop("Invalid format")

    class(blocks) <- "memFormat"
    blocks
}
pmur002/hexview documentation built on May 24, 2017, 8:56 a.m.