mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Core: Optimized OutStream, removed DDUMPs
git-svn-id: svn://ultimatepp.org/upp/trunk@10032 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ed83496a74
commit
220f751a03
6 changed files with 23 additions and 17 deletions
|
|
@ -147,7 +147,7 @@ bool Stream::GetAll(Huge& h, size_t size)
|
|||
|
||||
String Stream::Get(int size)
|
||||
{
|
||||
if(size < 1024*1024) {
|
||||
if(size < 32 * 1024*1024) {
|
||||
StringBuffer b(size);
|
||||
int n = Get(~b, size);
|
||||
b.SetCount(n);
|
||||
|
|
@ -1126,8 +1126,15 @@ void CompareStream::_Put(int w) {
|
|||
|
||||
OutStream::OutStream()
|
||||
{
|
||||
const int bsz = 64 * 1024;
|
||||
h = new byte[bsz];
|
||||
buffer = ptr = h;
|
||||
wrlim = h + sizeof(h);
|
||||
wrlim = h + bsz;
|
||||
}
|
||||
|
||||
OutStream::~OutStream()
|
||||
{
|
||||
delete[] h;
|
||||
}
|
||||
|
||||
void OutStream::_Put(int w)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue