io/BufferedOutputStream: add WriteT()
This commit is contained in:
parent
f9f3306db9
commit
d1f9b06f84
@ -58,8 +58,13 @@ public:
|
|||||||
|
|
||||||
void Write(const void *data, std::size_t size);
|
void Write(const void *data, std::size_t size);
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
void WriteT(const T &value) {
|
||||||
|
Write(&value, sizeof(value));
|
||||||
|
}
|
||||||
|
|
||||||
void Write(const char &ch) {
|
void Write(const char &ch) {
|
||||||
Write(&ch, sizeof(ch));
|
WriteT(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Write(const char *p);
|
void Write(const char *p);
|
||||||
|
Loading…
Reference in New Issue
Block a user