使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
Archivist
/
raylib-src
镜像自地址
https://github.com/raysan5/raylib
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
24
百科
动态
浏览代码
REVIEWED: `DecodeDataBase64()`, follow convention:
- All `char *` refer to text strings - All `unsigned char *` refer to generic byte arrays
pull/4937/head
Ray
3 周前
父节点
3083f0cd43
当前提交
f7d03efb49
共有
2 个文件被更改
,包括
2 次插入
和
2 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+1
-1
src/raylib.h
+1
-1
src/rcore.c
+ 1
- 1
src/raylib.h
查看文件
@ -1154,7 +1154,7 @@ RLAPI long GetFileModTime(const char *fileName); // Get file mo
RLAPI
unsigned
char
*
CompressData
(
const
unsigned
char
*
data
,
int
dataSize
,
int
*
compDataSize
)
;
/
/
Compress
data
(
DEFLATE
algorithm
)
,
memory
must
be
MemFree
(
)
RLAPI
unsigned
char
*
DecompressData
(
const
unsigned
char
*
compData
,
int
compDataSize
,
int
*
dataSize
)
;
/
/
Decompress
data
(
DEFLATE
algorithm
)
,
memory
must
be
MemFree
(
)
RLAPI
char
*
EncodeDataBase64
(
const
unsigned
char
*
data
,
int
dataSize
,
int
*
outputSize
)
;
/
/
Encode
data
to
Base64
string
,
memory
must
be
MemFree
(
)
RLAPI
unsigned
char
*
DecodeDataBase64
(
const
unsigned
char
*
data
,
int
*
outputSize
)
;
/
/
Decode
Base64
string
data
,
memory
must
be
MemFree
(
)
RLAPI
unsigned
char
*
DecodeDataBase64
(
const
char
*
data
,
int
*
outputSize
)
;
/
/
Decode
Base64
string
data
,
memory
must
be
MemFree
(
)
RLAPI
unsigned
int
ComputeCRC32
(
unsigned
char
*
data
,
int
dataSize
)
;
/
/
Compute
CRC32
hash
code
RLAPI
unsigned
int
*
ComputeMD5
(
unsigned
char
*
data
,
int
dataSize
)
;
/
/
Compute
MD5
hash
code
,
returns
static
int
[
4
]
(
16
bytes
)
RLAPI
unsigned
int
*
ComputeSHA1
(
unsigned
char
*
data
,
int
dataSize
)
;
/
/
Compute
SHA1
hash
code
,
returns
static
int
[
5
]
(
20
bytes
)
+ 1
- 1
src/rcore.c
查看文件
@ -2575,7 +2575,7 @@ char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize)
}
/
/
Decode
Base64
string
data
unsigned
char
*
DecodeDataBase64
(
const
unsigned
char
*
data
,
int
*
outputSize
)
unsigned
char
*
DecodeDataBase64
(
const
char
*
data
,
int
*
outputSize
)
{
static
const
unsigned
char
base64decodeTable
[
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
撰写
预览
正在加载...
取消
保存