pack {rdyncall}R Documentation

Pack and unpacking of low-level structured data.

Description

Functions to read/write low-level structure data held as pointer or in a raw vector.

Usage

.pack1(x, offset, sigchar, value)
value <- .unpack1(x, offset, sigchar)
offsetPtr(x, offset)

Arguments

x An atomic vector or external pointer.
offset Positive integer specifying the offset from within the beginning (item 0) given in bytes.
sigchar Data type specifying the low-level representation of value
value Value

Details

These functions can be used for manipulating C-level structure data. Atomic vectors are first adjusted to start at the first element (offset 0).


[Package rdyncall version 0.1 Index]