Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
547 B · 23 lines
C
at main
1234567891011121314151617181920212223#pragma once
#include "OutputStream.h"
class BufferedOutputStream : public OutputStream{private: OutputStream *stream;
protected : byteArray buf; // The internal buffer where data is stored. unsigned int count; // The number of valid bytes in the buffer.
public: BufferedOutputStream(OutputStream *out, int size); ~BufferedOutputStream();
virtual void flush(); virtual void close(); virtual void write(byteArray b, unsigned int offset, unsigned int length); virtual void write(byteArray b); virtual void write(unsigned int b);};