Home | History | Annotate | Download | only in php

Lines Matching full:"$ index"

319      * @param $index
322 public function getByte($index)
324 return ord($this->_buffer[$index]);
328 * @param $index
331 public function getSbyte($index)
333 $v = unpack("c", $this->_buffer[$index]);
348 * @param $index
351 public function get($index)
353 $this->assertOffsetAndLength($index, 1);
354 return $this->_buffer[$index];
359 * @param $index
362 public function getBool($index)
364 return (bool)ord($this->_buffer[$index]);
368 * @param $index
371 public function getShort($index)
373 $result = $this->readLittleEndian($index, 2);
375 $sign = $index + (ByteBuffer::isLittleEndian() ? 1 : 0);
383 * @param $index
386 public function getUShort($index)
388 return $this->readLittleEndian($index, 2);
392 * @param $index
395 public function getInt($index)
397 $result = $this->readLittleEndian($index, 4);
399 $sign = $index + (ByteBuffer::isLittleEndian() ? 3 : 0);
412 * @param $index
415 public function getUint($index)
417 return $this->readLittleEndian($index, 4);
421 * @param $index
424 public function getLong($index)
426 return $this->readLittleEndian($index, 8);
430 * @param $index
433 public function getUlong($index)
435 return $this->readLittleEndian($index, 8);
439 * @param $index
442 public function getFloat($index)
444 $i = $this->readLittleEndian($index, 4);
450 * @param $index
453 public function getDouble($index)
455 $i = $this->readLittleEndian($index, 4);
456 $i2 = $this->readLittleEndian($index + 4, 4);