Files
zh_vector/README.md
T
2026-08-01 10:41:33 +03:00

1.1 KiB

ESP32 ESP-IDF component for vector (dynamic array)

Wiki

EN | RU

Tested on

  1. ESP32 ESP-IDF v6.0.0

SAST Tools

PVS-Studio - static analyzer for C, C++, C#, and Java code.

Features

  1. Support for any data types through void pointers.
  2. Dynamic capacity with automatic growth and shrinkage.
  3. Maximum capacity of 65,535 elements (16-bit index).
  4. Thread-safe implementation using FreeRTOS mutex.
  5. Automatic memory management with ESP-IDF heap_caps functions.
  6. Flexible insertion at front or back.
  7. Duplicate removal and item search capabilities.

Using

In an existing project, run the following command to install the component:

cd ../your_project/components
git clone https://github.com/aZholtikov/zh_vector

In the application, add the component:

#include "zh_vector.h"

Examples

See Wiki EN | RU