mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
e17a84672a
commit
19338a522f
7 changed files with 660 additions and 633 deletions
|
|
@ -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(); }
|
||||
|
|
|
|||
|
|
@ -6,6 +6,3 @@ file
|
|||
BufferStream.cpp,
|
||||
src.tpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
|
|
|
|||
|
|
@ -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.&]
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
@ -6,6 +6,3 @@ file
|
|||
Tree.cpp,
|
||||
src.tpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue