コード例 #1
0
ファイル: bmp.php プロジェクト: vazahat/dudex
function jpexs_freadbits($f, $count)
{
    global $jpexs_CurrentBit, $SMode;
    $Byte = jpexs_freadbyte($f);
    $LastCBit = $jpexs_CurrentBit;
    $jpexs_CurrentBit += $count;
    if ($jpexs_CurrentBit == 8) {
        $jpexs_CurrentBit = 0;
    } else {
        fseek($f, ftell($f) - 1);
    }
    return jpexs_retBits($Byte, $LastCBit, $count);
}
コード例 #2
0
ファイル: ico.php プロジェクト: LeeGlendenning/formulize
function jpexs_freadword($f)
{
    $b1 = jpexs_freadbyte($f);
    $b2 = jpexs_freadbyte($f);
    return $b2 * 256 + $b1;
}