Skip to contents

Returns information about a buffer.

Usage

buffer_info(x)

Arguments

x

A shard_buffer object.

Value

A named list with buffer properties: type, dim, n, bytes, backing, path, and readonly.

Examples

# \donttest{
buf <- buffer("integer", dim = c(5, 5))
buffer_info(buf)
#> $type
#> [1] "integer"
#> 
#> $dim
#> [1] 5 5
#> 
#> $n
#> [1] 25
#> 
#> $bytes
#> [1] 100
#> 
#> $backing
#> [1] "shm"
#> 
#> $path
#> [1] "/shd1900_6a5a786f_6a5a787a"
#> 
#> $readonly
#> [1] FALSE
#> 
buffer_close(buf)
# }