⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 computil.c

📁 在x86平台上运行不可信任代码的sandbox。
💻 C
字号:
#include "u.h"#include "lib.h"#include "draw.h"/* * compressed data are seuences of byte codes.   * if the first byte b has the 0x80 bit set, the next (b^0x80)+1 bytes * are data.  otherwise, it's two bytes specifying a previous string to repeat. */void_twiddlecompressed(uchar *buf, int n){	uchar *ebuf;	int j, k, c;	ebuf = buf+n;	while(buf < ebuf){		c = *buf++;		if(c >= 128){			k = c-128+1;			for(j=0; j<k; j++, buf++)				*buf ^= 0xFF;		}else			buf++;	}}int_compblocksize(Rectangle r, int depth){	int bpl;	bpl = bytesperline(r, depth);	bpl = 2*bpl;	/* add plenty extra for blocking, etc. */	if(bpl < NCBLOCK)		return NCBLOCK;	return bpl;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -