clarify that prepared dictionaries are "lean" PiperOrigin-RevId: 811221063
diff --git a/c/include/brotli/encode.h b/c/include/brotli/encode.h index 6267749..ac26ea8 100644 --- a/c/include/brotli/encode.h +++ b/c/include/brotli/encode.h
@@ -283,6 +283,10 @@ * passed to @p alloc_func and @p free_func when they are called. @p free_func * has to return without doing anything when asked to free a NULL pointer. * + * @warning Created instance is "lean"; it does not contain copy of @p data, + * rather it contains only pointer to it; therefore, + * @p data @b MUST outlive the created instance. + * * @param type type of dictionary stored in data * @param data_size size of @p data buffer * @param data pointer to the dictionary data