Learn R Programming

shard (version 0.1.0)

buffer_advise: Advise access pattern for a buffer

Description

Advise access pattern for a buffer

Usage

buffer_advise(
  x,
  advice = c("normal", "sequential", "random", "willneed", "dontneed")
)

Value

A logical scalar; TRUE if the OS accepted the hint.

Arguments

x

A shard_buffer.

advice

See segment_advise().

Examples

Run this code
# \donttest{
buf <- buffer("double", dim = 10L)
buffer_advise(buf, "sequential")
# }

Run the code above in your browser using DataLab