shuax
|
codepad
|
|
shuax
|
Saved pastes by shuax:
--根据首字节获取UTF8需要的字节数
local function GetUTF8CharLength(ch)
local utf8_look_for_table = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
view (81 lines, 6 lines of output) |
/*
单文件zlib解压,调用接口:
unsigned char *stbi_zlib_decode_malloc(const unsigned char *buffer, unsigned int *len, unsigned int *outlen)
失败返回0
|
view (463 lines) |