POMO_StringReader::read()publicWP 1.0

Method of the class: POMO_StringReader{}

No Hooks.

Return

String.

Usage

$POMO_StringReader = new POMO_StringReader();
$POMO_StringReader->read( $bytes );
$bytes(string) (required)
-

POMO_StringReader::read() code WP 6.5.2

public function read( $bytes ) {
	$data        = $this->substr( $this->_str, $this->_pos, $bytes );
	$this->_pos += $bytes;
	if ( $this->strlen( $this->_str ) < $this->_pos ) {
		$this->_pos = $this->strlen( $this->_str );
	}
	return $data;
}