embkernel
 All Classes Functions Variables Typedefs Groups Pages
LibStreamOutArray.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #ifndef LIB_STREAM_OUT_ARRAY_HPP_
7 #define LIB_STREAM_OUT_ARRAY_HPP_
8 
9 #include <stddef.h>
10 #include "LibStreamOut.hpp"
11 
12 class LibStreamOutArray: public LibStreamOut {
13 private:
14  uint8_t* mBuffer;
15  int mBufferSize;
16  int mPosition;
17 public:
18  LibStreamOutArray(uint8_t* buffer, int size);
19  int getPosition();
20  void setPosition(int position);
21  virtual int write(const void* buffer, int len, Rtos::TICK timeout=Rtos::TICK_INFINITE);
22 
23 };
24 
25 #endif /* LIB_STREAM_OUT_ARRAY_HPP_ */