namespace OpenP2P {

	class BufferBuilder: public OStream {
		public:
			BufferBuilder(Buffer&);
			
			bool isValid() const;
			
			Event::Source eventSource() const;
			
			size_t write(const uint8_t* data, size_t size);
			
		private:
			Buffer& buffer_;
			
	};
	
}

#endif
