original_string: public function writeLittleEndian($offset, $count, $data)
      {
          if (ByteBuffer::isLittleEndian()) {
              for ($i = 0; $i < $count; $i++) {
                  $this->_buffer[$offset + $i] = chr($data >> $i * 8);
              }
          } else {
              for ($i = 0; $i < $count; $i++) {
                  $this->_buffer[$offset + $count - 1 - $i] = chr($data >> $i * 8);
              }
          }
      }
code: public function writeLittleEndian($offset, $count, $data)
      {
          if (ByteBuffer::isLittleEndian()) {
              for ($i = 0; $i < $count; $i++) {
                  $this->_buffer[$offset + $i] = chr($data >> $i * 8);
              }
          } else {
              for ($i = 0; $i < $count; $i++) {
                  $this->_buffer[$offset + $count - 1 - $i] = chr($data >> $i * 8);
              }
          }
      }
code_tokens: public function writeLittleEndian ( $ offset , $ count , $ data ) { if ( ByteBuffer :: isLittleEndian ( ) ) { for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ this -> _buffer [ $ offset + $ i ] = chr ( $ data >> $ i * 8 ) ; } } else { for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ this -> _buffer [ $ offset + $ count - 1 - $ i ] = chr ( $ data >> $ i * 8 ) ; } } }
docstring: write little endian value to the buffer.
  
  @param $offset
  @param $count byte length
  @param $data actual values
docstring_tokens: write little endian value to the buffer .