Skip to contents

Creates a new empty slice-store-backed stringfish vector with a fixed initial slice size

Usage

slice_store_create_with_size(len, initial_slice_size)

Arguments

len

length of the new vector

initial_slice_size

Initial size of the first underlying `slice_store` slice.

Value

A new slice-store-backed stringfish vector

Details

This function creates a new stringfish vector backed by `slice_store`, and uses `initial_slice_size` for the first slice allocation instead of the default heuristic. If you want to fill the vector from character data, use `convert_to_slice_store`.

Examples

x <- slice_store_create_with_size(4, 256)