Lines Matching defs:buffer
40 private $buffer;
55 public function __construct($buffer)
58 $end = strlen($buffer);
59 $this->buffer = $buffer;
90 return substr($this->buffer, $start, $end - $start);
98 // The limit position is in the current buffer. We must adjust the
99 // buffer size accordingly.
114 * Read uint32 into $var. Advance buffer with consumed bytes. If the
144 * Read Uint64 into $var. Advance buffer with consumed bytes.
163 $b = ord($this->buffer[$this->current]);
195 $byte = ord($this->buffer[$this->current]);
210 * will be -1. Advance buffer with consumed bytes.
223 * Read 32-bit unsigned integer to $var. If the buffer has less than 4 bytes,
224 * return false. Advance buffer with consumed bytes.
239 * Read 64-bit unsigned integer to $var. If the buffer has less than 8 bytes,
240 * return false. Advance buffer with consumed bytes.
263 * Read tag into $var. Advance buffer with consumed bytes.
295 public function readRaw($size, &$buffer)
303 $buffer = "";
305 $buffer = substr($this->buffer, $this->current, $size);