src/dataBuffer.h

changeset 135
8b9132fea327
parent 134
eca2fc0acaa2
child 138
a426c1039655
equal deleted inserted replaced
134:eca2fc0acaa2 135:8b9132fea327
27 */ 27 */
28 28
29 #ifndef BOTC_DATABUFFER_H 29 #ifndef BOTC_DATABUFFER_H
30 #define BOTC_DATABUFFER_H 30 #define BOTC_DATABUFFER_H
31 31
32 #include <stdio.h>
33 #include <string.h>
34 #include "main.h" 32 #include "main.h"
35 #include "stringTable.h" 33 #include "stringTable.h"
36 34
37 // ------------------------------------------------------------------------------------------------ 35 // ------------------------------------------------------------------------------------------------
38 // 36 //
77 void writeStringIndex (const String& a); 75 void writeStringIndex (const String& a);
78 void writeString (const String& a); 76 void writeString (const String& a);
79 void writeByte (int8_t data); 77 void writeByte (int8_t data);
80 void writeWord (int16_t data); 78 void writeWord (int16_t data);
81 void writeDWord (int32_t data); 79 void writeDWord (int32_t data);
80 void writeHeader (DataHeader data);
82 inline int writtenSize() const; 81 inline int writtenSize() const;
83 82
84 private: 83 private:
85 void copyBuffer (const DataBuffer* buf); 84 void copyBuffer (const DataBuffer* buf);
86 }; 85 };

mercurial