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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
write little endian value to the buffer.

@param $offset
@param $count byte length
@param $data actual values
write little endian value to the buffer .