GIR Raw {gir}R Documentation

GIR Raw Vector Utilities

Description

Functions to convert to and from packed bytes in raw vectors.

Usage

girAsRaw(inp, typ)

Arguments

inp vector of numerics or integers; to convert to raw.
typ integer; inp is converted to this GL type. One of GL_DOUBLE, GL_FLOAT, GL_INT, GL_UNSIGNED_INT, GL_SHORT, GL_UNSIGNED_SHORT, GL_BYTEr, GL_UNSIGNED_BYTE.

Details

girAsRaw converts its inp argument to a sequence of packed bytes. Each item of inp is converted by C type-casting to typ, then appended to the sequence, which is returned as a vector of storage mode raw.

Value

girAsRaw returns the converted raw vector.


[Package gir version 0.3-2 Index]