Horde_ActiveSync_Wbxml_Encoder::_outMBUInt PHP Method

_outMBUInt() private method

Outputs an MBUInt to the stream
private _outMBUInt ( $uint )
$uint The data to write.
    private function _outMBUInt($uint)
    {
        while (1) {
            $byte = $uint & 0x7f;
            $uint = $uint >> 7;
            if ($uint == 0) {
                $this->_outByte($byte);
                break;
            } else {
                $this->_outByte($byte | 0x80);
            }
        }
    }