FastLED 3.9.15
Loading...
Searching...
No Matches
bytestreammemory.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/stdint.h"
4
5#include "fl/namespace.h"
6#include "fl/memory.h"
7
8#include "fl/bytestream.h"
10#include "fl/int.h"
11
12namespace fl {
13
15
17 public:
18 ByteStreamMemory(fl::u32 size_buffer);
20 bool available(fl::size n) const override;
21 fl::size read(fl::u8 *dst, fl::size bytesToRead) override;
22 void clear() { mReadBuffer.clear(); }
23 const char *path() const override { return "ByteStreamMemory"; }
24 fl::size write(const fl::u8 *src, fl::size n);
25 fl::size writeCRGB(const CRGB *src, fl::size n);
26
27 private:
29};
30
31} // namespace fl
ByteStreamMemory(fl::u32 size_buffer)
~ByteStreamMemory() override
fl::size write(const fl::u8 *src, fl::size n)
CircularBuffer< fl::u8 > mReadBuffer
fl::size writeCRGB(const CRGB *src, fl::size n)
const char * path() const override
Implements the FastLED namespace macros.
int available()
Definition io.cpp:117
unsigned char u8
Definition int.h:17
int read()
Definition io.cpp:148
IMPORTANT!
Definition crgb.h:20
#define FASTLED_SMART_PTR(type)
Definition ptr.h:33
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86