io/BufferedOutputStream: add WriteT()

This commit is contained in:
Max Kellermann 2021-07-29 17:15:40 +02:00 committed by Max Kellermann
parent f9f3306db9
commit d1f9b06f84

View File

@ -58,8 +58,13 @@ public:
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) {
Write(&ch, sizeof(ch));
WriteT(ch);
}
void Write(const char *p);