readFromBuffer() public static method

Buffer automatically fetches next chunk of data when the buffer falls short. Sets $eof when $GLOBALS['finished'] is set and the buffer falls short.
public static readFromBuffer ( integer $length ) : string
$length integer number of bytes
return string
示例#1
0
 /**
  * Reads given number of bytes from SHP file
  *
  * @return string|false
  */
 public function readSHP($bytes)
 {
     return ImportShp::readFromBuffer($bytes);
 }