|
| 1 | +# Generated by extendr: Do not edit by hand |
| 2 | + |
| 3 | +# nolint start |
| 4 | + |
| 5 | +# |
| 6 | +# This file was created with the following call: |
| 7 | +# .Call("wrap__make_pizzarr_wrappers", use_symbols = TRUE, package_name = "pizzarr") |
| 8 | + |
| 9 | +#' @usage NULL |
| 10 | +#' @useDynLib pizzarr, .registration = TRUE |
| 11 | +NULL |
| 12 | + |
| 13 | +#' Return compiled zarrs feature flags as a character vector. |
| 14 | +#' |
| 15 | +#' Called once at `.onLoad` to populate `.pizzarr_env$zarrs_available`. |
| 16 | +#' The feature list is determined at compile time via `cfg!` checks. |
| 17 | +#' @export |
| 18 | +zarrs_compiled_features <- function() .Call(wrap__zarrs_compiled_features) |
| 19 | + |
| 20 | +#' Check whether a node exists at the given path in a zarrs store. |
| 21 | +#' |
| 22 | +#' Open (or reuse) the store at `store_url`, then probe for V3 and V2 |
| 23 | +#' metadata keys at `path`. |
| 24 | +#' |
| 25 | +#' @param store_url Filesystem path or URL to the store root. |
| 26 | +#' @param path Path within the store (e.g. `"group1/array1"` or `""` for root). |
| 27 | +#' @export |
| 28 | +zarrs_node_exists <- function(store_url, path) .Call(wrap__zarrs_node_exists, store_url, path) |
| 29 | + |
| 30 | +#' Close (remove) a cached store handle. |
| 31 | +#' |
| 32 | +#' Returns `TRUE` if the store was in the cache and was removed, |
| 33 | +#' `FALSE` if it was not cached. |
| 34 | +#' |
| 35 | +#' @param store_url Filesystem path or URL to the store root. |
| 36 | +#' @export |
| 37 | +zarrs_close_store <- function(store_url) .Call(wrap__zarrs_close_store, store_url) |
| 38 | + |
| 39 | +#' Open a zarrs array and return its metadata as an R list. |
| 40 | +#' |
| 41 | +#' Returns a named list with `shape`, `chunks`, `dtype`, `r_type`, |
| 42 | +#' `fill_value_json`, `zarr_format`, and `order`. |
| 43 | +#' |
| 44 | +#' @param store_url Filesystem path or URL to the store root. |
| 45 | +#' @param array_path Path to the array within the store. |
| 46 | +#' @export |
| 47 | +zarrs_open_array_metadata <- function(store_url, array_path) .Call(wrap__zarrs_open_array_metadata, store_url, array_path) |
| 48 | + |
| 49 | +#' Return runtime information about the zarrs backend. |
| 50 | +#' |
| 51 | +#' Returns a named list with `codec_concurrent_target`, |
| 52 | +#' `store_cache_entries`, and `compiled_features`. |
| 53 | +#' @export |
| 54 | +zarrs_runtime_info <- function() .Call(wrap__zarrs_runtime_info) |
| 55 | + |
| 56 | +#' Set the zarrs codec concurrent target. |
| 57 | +#' |
| 58 | +#' Controls the number of concurrent codec operations zarrs uses |
| 59 | +#' within a single array operation. |
| 60 | +#' |
| 61 | +#' @param n Positive integer. |
| 62 | +#' @export |
| 63 | +zarrs_set_codec_concurrent_target <- function(n) .Call(wrap__zarrs_set_codec_concurrent_target, n) |
| 64 | + |
| 65 | +#' Get a contiguous subset of an array. |
| 66 | +#' |
| 67 | +#' Returns a named list with `data` (numeric, integer, or logical vector) |
| 68 | +#' and `shape` (integer vector). Ranges are 0-based, exclusive stop. |
| 69 | +#' |
| 70 | +#' @param store_url Filesystem path or URL to the store root. |
| 71 | +#' @param array_path Path to the array within the store. |
| 72 | +#' @param ranges R list of length-2 integer vectors `c(start, stop)`. |
| 73 | +#' @param concurrent_target Optional codec concurrency override. |
| 74 | +#' @export |
| 75 | +zarrs_get_subset <- function(store_url, array_path, ranges, concurrent_target) .Call(wrap__zarrs_get_subset, store_url, array_path, ranges, concurrent_target) |
| 76 | + |
| 77 | +#' Set a contiguous subset of an array from R data. |
| 78 | +#' |
| 79 | +#' Returns `true` on success. Ranges are 0-based, exclusive stop. |
| 80 | +#' Data must be a flat vector in C-order (row-major). |
| 81 | +#' |
| 82 | +#' @param store_url Filesystem path or URL to the store root. |
| 83 | +#' @param array_path Path to the array within the store. |
| 84 | +#' @param ranges R list of length-2 integer vectors `c(start, stop)`. |
| 85 | +#' @param data R vector (numeric, integer, or logical). |
| 86 | +#' @param concurrent_target Optional codec concurrency override. |
| 87 | +#' @export |
| 88 | +zarrs_set_subset <- function(store_url, array_path, ranges, data, concurrent_target) .Call(wrap__zarrs_set_subset, store_url, array_path, ranges, data, concurrent_target) |
| 89 | + |
| 90 | + |
| 91 | +# nolint end |
0 commit comments