original_string: public function readLittleEndian($offset, $count, $force_bigendian = false)
      {
          $this->assertOffsetAndLength($offset, $count);
          $r = 0;
  
          if (ByteBuffer::isLittleEndian() && $force_bigendian == false) {
              for ($i = 0; $i < $count; $i++) {
                  $r |= ord($this->_buffer[$offset + $i]) << $i * 8;
              }
          } else {
              for ($i = 0; $i < $count; $i++) {
                  $r |= ord($this->_buffer[$offset + $count -1 - $i]) << $i * 8;
              }
          }
  
          return $r;
      }
code: public function readLittleEndian($offset, $count, $force_bigendian = false)
      {
          $this->assertOffsetAndLength($offset, $count);
          $r = 0;
  
          if (ByteBuffer::isLittleEndian() && $force_bigendian == false) {
              for ($i = 0; $i < $count; $i++) {
                  $r |= ord($this->_buffer[$offset + $i]) << $i * 8;
              }
          } else {
              for ($i = 0; $i < $count; $i++) {
                  $r |= ord($this->_buffer[$offset + $count -1 - $i]) << $i * 8;
              }
          }
  
          return $r;
      }
code_tokens: public function readLittleEndian ( $ offset , $ count , $ force_bigendian = false ) { $ this -> assertOffsetAndLength ( $ offset , $ count ) ; $ r = 0 ; if ( ByteBuffer :: isLittleEndian ( ) && $ force_bigendian == false ) { for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ r |= ord ( $ this -> _buffer [ $ offset + $ i ] ) << $ i * 8 ; } } else { for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ r |= ord ( $ this -> _buffer [ $ offset + $ count - 1 - $ i ] ) << $ i * 8 ; } } return $ r ; }
docstring: read little endian value from the buffer
  
  @param $offset
  @param $count acutal size
  @return int
docstring_tokens: read little endian value from the buffer