Ferreteria/v0.6/clade/IO/Aspect/Connx/Buffer/@fx/RemoveBytes

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | clade‎ | IO‎ | Aspect‎ | Connx‎ | Buffer
Revision as of 14:36, 11 December 2025 by Woozle (talk | contribs) (Created page with "{{page/fx}} ==Code== ''as of {{fmt/date|2025|12|11}}:'' {{fmt/php/block|1=# public function RemoveBytes() : string { $this->ErrorIfShut('read from'); $sOut = $this->sBuff; $nLen = strlen($sOut); $this->nSpent += $nLen; $this->sBuff = ''; return $sOut; } }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Code

as of 2025-12-11:

#
    public function RemoveBytes() : string {
        $this->ErrorIfShut('read from');
        $sOut = $this->sBuff;
        $nLen = strlen($sOut);
        $this->nSpent += $nLen;
        $this->sBuff = '';
        return $sOut;
    }