Memory Storage
File:TArduinoMemoryStorage.png
Summary
Provides an in-memory storage buffer with flexible read and write operations.
Description
The **Memory Storage** component implements a data buffer stored in memory, allowing sequential or random access reading and writing. It supports a wide range of element types for both **Readers** and **Writers**, making it suitable for applications that require temporary data storage, stream manipulation, or binary/text buffering.
This storage can be configured to operate in **loop mode**, enabling cyclic buffering where data overwrites the oldest content when full. The **Size** property defines the total buffer capacity (default is 512 bytes).
Elements define the type of operations available.
- Readers:
- Read Seek
- Read Text Line
- Read Binary Analog
- Read Binary Integer
- Read Binary Unsigned
- Read Binary Date/Time
- Read Binary Complex
- Read Binary Quaternion
- Read Binary Block
- Read Binary Color
- Read Binary Alpha Color
- Read Binary RGBW Color
- Read Binary RGBW Alpha Color
- Repeat Read
- Writers:
- Write Seek
- Write Text Line
- Write Binary Analog
- Write Binary Integer
- Write Binary Unsigned
- Write Binary Date/Time
- Write Binary Complex
- Write Binary Quaternion
- Write Binary Block
- Write Binary Color
- Write Binary Alpha Color
- Write Binary RGBW Color
- Write Binary RGBW Alpha Color
This component is ideal for scenarios such as:
- Temporary storage of streamed data.
- Processing and replay of binary communication packets.
- In-memory manipulation of structured data without external storage.
Diagram:
Categories
- File:TArduinoDataCategory.png Category Data – Memory, storage, and buffering.
Properties
- Elements – Configurable operations for reading and writing (Readers and Writers).
- Loop – Enables cyclic storage (oldest data overwritten when full).
- Size – Defines buffer size in bytes (default 512).
Pins
Input Pins
- In – Input data stream for writing to memory.
Output Pins
- Read position – Current read pointer in memory.
- Write position – Current write pointer in memory.