void CCacheWriter::CStoreBuffer::StoreString(const string& s) { size_t size = s.size(); CheckSpace(4+size); x_StoreUint4(ToUint4(size)); memcpy(m_Ptr, s.data(), size); m_Ptr += size; }
void StoreUint4(Uint4 v) { CheckSpace(4); x_StoreUint4(v); }