Ferreteria/v0.6/fx/RemoveBytes: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | fx
Jump to navigation Jump to search
(Created page with "{{page/fx}} ==About== * '''Action''': removes bytes from a buffer ** ...presumably because they have been processed, but actually right now this just removes ''all'' of the bytes and you have to put back the ones you don't use. This seems awkward. {{hashtag|TODO}}: fix ==Usage== {| class=wikitable ! clade || require || implement || call || notes {{!-!}} <code>{{l/ver/clade/full|IO\Aspect\Connx|Buffer}}</code> || <code>function RemoveBytes() : string;</code> || <code>{{l/...")
 
No edit summary
 
Line 13: Line 13:
* empty the buffer
* empty the buffer
* return retrieved contents
* return retrieved contents
{{!-!}} <code>{{l/ver/clade/full|IO\Aspect\Connx\Buffer\File|Reader}}</code>
|
| <code>{{l/ver/clade/fx|IO\Aspect\Connx\Buffer\File|Reader|{{SUBPAGENAME}}|yes}}</code>
| in <code>{{l/ver/clade/fx|IO\Aspect\Connx\Buffer\File|Reader|{{SUBPAGENAME}}}}: <code>parent::{{l/ver/clade/fx|IO\Aspect\Connx|Buffer|{{SUBPAGENAME}}}}()</code>
{{!-!}} <code>{{l/ver/clade/full|IO\Aspect\Connx|Process}}</code>
{{!-!}} <code>{{l/ver/clade/full|IO\Aspect\Connx|Process}}</code>
|
|

Latest revision as of 14:35, 11 December 2025

About

  • Action: removes bytes from a buffer
    • ...presumably because they have been processed, but actually right now this just removes all of the bytes and you have to put back the ones you don't use. This seems awkward. #TODO: fix

Usage

clade require implement call notes
IO\Aspect\Connx\Buffer function RemoveBytes() : string; yes as of 2025-12-11:
  • get entire contents of the buffer
  • increment "spent" counter by content length
  • empty the buffer
  • return retrieved contents
IO\Aspect\Connx\Buffer\File\Reader yes in IO\Aspect\Connx\Buffer\File\Reader: parent::IO\Aspect\Connx\Buffer()
IO\Aspect\Connx\Process in Run(), SendFromBuffer(), BufferToStream()
Sys\Data\Engine\Oper\MyMar in NewSchemaList()