ThinkPHP/Library/Vendor/Hprose/HproseIOStream.php
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.net/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* HproseIOStream.php *
* *
* hprose io stream library for php5. *
* *
* LastModified: Nov 12, 2013 *
* Author: Ma Bingyao <andot@hprfc.com> *
* *
\**********************************************************/
abstract class HproseAbstractStream {
public abstract function close();
public abstract function getc();
public abstract function read($length);
public abstract function readuntil($char);
public abstract function seek($offset, $whence = SEEK_SET);
public abstract function mark();
public abstract function unmark();
public abstract function reset();
public abstract function skip($n);
public abstract function eof();
public abstract function write($string, $length = -1);
}
class HproseStringStream extends HproseAbstractStream {
protected $buffer;
protected $pos;
protected $mark;
protected $length;
public function __construct($string = '') {
$this->buffer = $string;
$this->pos = 0;
$this->mark = -1;
$this->length = strlen($string);
}
public function close() {
$this->buffer = NULL;
$this->pos = 0;
$this->mark = -1;
$this->length = 0;
}
public function length() {
return $this->length;
}
public function getc() {
return $this->buffer{$this->pos++};
}
public function read($length) {
后面还有 289 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
