All pastes #899728 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-02-11 11:59 UTC
rendered paste body
	template <class T>
	void Write(T val)
	{
		if((u64)_endOfBuffer + sizeof(T) > (u64)_endOfBuffer + capacity)
			Expand(PACKET_EXPAND);
		memcpy(_endOfBuffer, &val, sizeof(T));
		_endOfBuffer += sizeof(T);
		size += sizeof(T);
	}