Ferreteria/v0.6/fx/AvailBuffByteCount

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | fx
Jump to navigation Jump to search

See also AvailByteCount().

About

  • Returns: bytes currently remaining to read from the buffer (i.e. not including what's still in the source)
    • In the base class, this is implemented as: <bytes in buffer> + <size of file> - <bytes already read from file>
  • Definition: protected function AvailBuffByteCount() : int

Usage

clade require implement call notes
IO\Aspect\Connx\Buffer - return strlen($this->sBuff); from AvailByteCount():
return $this->AvailBuffByteCount() + $this->AvailSrceByteCount() - $this->SpentByteCount();
IO\Aspect\Connx\Buffer\File\Reader - - from CurrentBytes(), RefillBuffer(), DiscardBytes, RemoveBytes()