bazaar: BufferStream: Crop function

uppweb: bazaar page reference for BufferStream, DeEncrypter, Tree

git-svn-id: svn://ultimatepp.org/upp/trunk@2616 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
kohait 2010-08-17 11:17:16 +00:00
parent e17a84672a
commit 19338a522f
7 changed files with 660 additions and 633 deletions

View file

@ -21,6 +21,7 @@ public:
void Open(Vector<byte> & d);
void Create();
void Reserve(int n) { SetSize((int)GetSize() + n); }
void Crop() { SetSize(GetPos()); }
Vector<byte> GetResult();
operator Vector<byte>() { return GetResult(); }

View file

@ -6,6 +6,3 @@ file
BufferStream.cpp,
src.tpp;
mainconfig
"" = "";

View file

@ -33,6 +33,11 @@ rewinds current ptr to beginning.&]
mode.can speed up things if you know how much is to come.&]
[s3;%% &]
[s4; &]
[s5;:BufferStream`:`:Trim`(`): [@(0.0.255) void]_[* Crop]()&]
[s2;%% crops the internal buffer to currently used size. if storing
buffer, means crop&]
[s3; &]
[s4; &]
[s5;:BufferStream`:`:GetResult`(`): [_^Vector^ Vector]<[_^byte^ byte]>_[* GetResult]()&]
[s2;%% picks internal Vector, leaving an initialized Vector for new
operations.&]

View file

@ -9,4 +9,7 @@ random aes keys.&]
[s0; it uses default key size 32 byte (256 bit).&]
[s0; &]
[s0; known issue: files > 200 MB produce an `'Out of Memory`'...maybe
because of the heap allocator in Upp.]
because of the heap allocator in Upp.&]
[s0; &]
[s0; The implementation is not yet stable, and does not use streaming
of files in the intended way. this is TBD]

View file

@ -6,6 +6,3 @@ file
Tree.cpp,
src.tpp;
mainconfig
"" = "";

View file

@ -50,6 +50,14 @@ Guide]]
:: [s0;= [2 OpenSSL]]
:: [s0;= [2 All]]
:: [s0;=^topic`:`/`/Controls4U`/srcdoc`/Controls4U`$en`-us^2 ]
:: [s0; [^topic`:`/`/BufferStream`/src`/BufferStream`$en`-us^2 BufferStream]]
:: [s0; [+75 Stream based on Vector<byte> buffer, self growing]]
:: [s0;%- [+75 kohait00 (Konstantin Hartwich)]]
:: [s0;= [2 Beta]]
:: [s0;= [2 August 2010]]
:: [s0;= [2 None]]
:: [s0;= [2 All]]
:: [s0;=^topic`:`/`/Controls4U`/srcdoc`/Controls4U`$en`-us^2 ]
:: [s0; [^topic`:`/`/Controls4U`/srcdoc`/Controls4U`$en`-us^2 Controls4U]]
:: [s0; [+75 Some additional controls for U`+`+]]
:: [s0;%- [+75 Koldo (koldo)]]
@ -131,6 +139,14 @@ Guide]]
ŠŠŠôÄÊÁ êŽÀðñÚÒÑÙñ Ô¡ÛÝј±ÀÀÈ<EFBFBD> Øœ¢³¨¸¢ýÁ¾Ð<EFBFBD>èÀþ∜¬ŽÔœô¼ȡã<EFBFBD>íԵ¨ªª
éªÄôóûëãÚ¿Ø×Úå¢úËõ¿ŸÚß«ìëÿ˜ßú®
]]
:: [s0; [^topic`:`/`/DeEncrypter`/src`/DeEncrypter`$en`-us^2 DeEncrypter]]
:: [s0; [+75 A `*simple`* AESStream based Encrypter / Decrypter]]
:: [s0;+75 ]
:: [s0;= [2 Beta]]
:: [s0;= [2 August 2010]]
:: [s0;= [2 OpenSSL]]
:: [s0;= [2 All]]
:: [s0;2 ]
:: [s0; [^topic`:`/`/Docking`/src`/DockWindow`$en`-us^2 Docking]]
:: [s0; [+75 Window Docking framework]]
:: [s0; [+75 James Thomas (mrjt)]]
@ -633,6 +649,14 @@ archive as a GUI visual theme]]
:: [s0;= [2 None]]
:: [s0;= [2 All]]
:: [s0;=2 ]
:: [s0; [^topic`:`/`/Tree`/src`/Tree`$en`-us^2 Tree]]
:: [s0; [+75 Tree Container template based on Array container]]
:: [s0; [+75 kohait00 (Konstantin Hartwich)]]
:: [s0;= [2 Beta]]
:: [s0;= [2 August 2010]]
:: [s0;= [2 None]]
:: [s0;= [2 All]]
:: [s0;=2 ]
:: [s0; [^topic`:`/`/UltimateBook`/srcdoc`/UltimateBook`$en`-us^2 UltimateBook]]
:: [s0; [+75 .pdf book generated from available T`+`+ help]]
:: [s0; [+75 Koldo (koldo)]]

File diff suppressed because it is too large Load diff