MIME::bufGuessBinary PHP Method

bufGuessBinary() protected method

protected bufGuessBinary ( &$buf )
    protected function bufGuessBinary(&$buf)
    {
        for ($i = 0; $i < 32 && $i < strlen($buf); $i++) {
            $c = ord($buf[$i]);
            if ($c < 0x20 && $c != 0x9 && $c != 0xa) {
                return TRUE;
            }
        }
        return FALSE;
    }