memBlock: Create a memBlock Object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/memBlock.R

Description

This function creates a "memBlock" object, which is a description of a block of binary data. This can be used as part of a description of a binary format.

Usage

1
memBlock(nbytes = 1, width = NULL, machine = "hex")

Arguments

nbytes

The number of bytes in the block.

width

The number of bytes to print per row when displaying the block.

machine

How to print each byte when displaying; either "hex" or "binary".

Details

A binary block that is read in from a file using this description is interpreted as nbytes single-byte characters.

The description includes parameters controlling how a block of data should be displayed if this description is used to read in a block of binary data.

Value

A "memBlock" object.

Author(s)

Paul Murrell

See Also

memFormat readFormat atomicBlock vectorBlock lengthBlock mixedBlock markedBlock

Examples

1

Example output

$nbytes
[1] 8

$width
NULL

$machine
[1] "hex"

$endian
[1] "little"

$signed
[1] TRUE

attr(,"class")
[1] "memBlock"

hexView documentation built on May 2, 2019, 7:02 a.m.