Learn R Programming

shard (version 0.1.0)

as.raw.shard_buffer: Coerce a Shared Memory Buffer to Raw

Description

Coerce a Shared Memory Buffer to Raw

Usage

# S3 method for shard_buffer
as.raw(x, ...)

Value

A raw vector with the buffer contents.

Arguments

x

A shard_buffer object.

...

Ignored.

Examples

Run this code
# \donttest{
buf <- buffer("raw", dim = 5)
as.raw(buf)
buffer_close(buf)
# }

Run the code above in your browser using DataLab