Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vectorBlock

Create a vectorBlock Object


Description

These functions create a "vectorBlock" or lengthBlock object, which are a descriptions of a block of binary data. These can be used as part of a description of a binary format.

Usage

vectorBlock(block = ASCIIchar, length = 1)
lengthBlock(length = integer4, block = ASCIIchar, blockLabel = "block")

Arguments

block

An object derived from the "memBlock" class, e.g., an "atomicBlock" object.

length

The number of block objects in the overall binary block.

blockLabel

A label to name the block component of the "lengthBlock" object.

Details

These objects describe a block of binary data that consists of a repeating sub-block. The sub-block can be any type of "memBlock" object.

There is also a predefined ASCIIline block, which is a block of single-byte characters terminated by a newline character.

Value

A "vectorBlock" or lengthBlock object.

Author(s)

Paul Murrell

See Also

Examples

# A block of 20 four-byte blocks
# which are interpreted as integer values
vectorBlock(integer4, 20)

hexView

Viewing Binary Files

v0.3-4
GPL-2
Authors
Paul Murrell [aut, cre], Chao Bian [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.