Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
communication_ipc
提交
30ce5d05
C
communication_ipc
项目概览
OpenHarmony
/
communication_ipc
大约 1 年 前同步成功
通知
20
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
communication_ipc
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
30ce5d05
编写于
12月 31, 2021
作者:
O
openharmony_ci
提交者:
Gitee
12月 31, 2021
浏览文件
操作
浏览文件
下载
差异文件
!66 RPC支持基础数据类型序列化/反序列化
Merge pull request !66 from 穆天亮/master
上级
25f0f857
1630b8a5
变更
2
展开全部
显示空白变更内容
内联
并排
Showing
2 changed file
with
1283 addition
and
1 deletion
+1283
-1
interfaces/innerkits/c/ipc/include/serializer.h
interfaces/innerkits/c/ipc/include/serializer.h
+70
-0
ipc/native/c/manager/src/serializer.c
ipc/native/c/manager/src/serializer.c
+1213
-1
未找到文件。
interfaces/innerkits/c/ipc/include/serializer.h
浏览文件 @
30ce5d05
...
...
@@ -54,6 +54,76 @@ bool WriteFileDescriptor(IpcIo *io, uint32_t fd);
bool
ReadRemoteObject
(
IpcIo
*
io
,
SvcIdentity
*
svc
);
int32_t
ReadFileDescriptor
(
IpcIo
*
io
);
bool
WriteBool
(
IpcIo
*
io
,
bool
value
);
bool
WriteInt8
(
IpcIo
*
io
,
int8_t
value
);
bool
WriteInt16
(
IpcIo
*
io
,
int16_t
value
);
bool
WriteInt32
(
IpcIo
*
io
,
int32_t
value
);
bool
WriteInt64
(
IpcIo
*
io
,
int64_t
value
);
bool
WriteUint8
(
IpcIo
*
io
,
uint8_t
value
);
bool
WriteUint16
(
IpcIo
*
io
,
uint16_t
value
);
bool
WriteUint32
(
IpcIo
*
io
,
uint32_t
value
);
bool
WriteUint64
(
IpcIo
*
io
,
uint64_t
value
);
bool
WriteBoolUnaligned
(
IpcIo
*
io
,
bool
value
);
bool
WriteInt8Unaligned
(
IpcIo
*
io
,
int8_t
value
);
bool
WriteInt16Unaligned
(
IpcIo
*
io
,
int16_t
value
);
bool
WriteUint8Unaligned
(
IpcIo
*
io
,
uint8_t
value
);
bool
WriteUint16Unaligned
(
IpcIo
*
io
,
uint16_t
value
);
bool
WriteFloat
(
IpcIo
*
io
,
float
value
);
bool
WriteDouble
(
IpcIo
*
io
,
double
value
);
bool
WritePointer
(
IpcIo
*
io
,
uintptr_t
value
);
bool
WriteString
(
IpcIo
*
io
,
const
char
*
value
);
bool
ReadBool
(
IpcIo
*
io
,
bool
*
value
);
bool
ReadInt8
(
IpcIo
*
io
,
int8_t
*
value
);
bool
ReadInt16
(
IpcIo
*
io
,
int16_t
*
value
);
bool
ReadInt32
(
IpcIo
*
io
,
int32_t
*
value
);
bool
ReadInt64
(
IpcIo
*
io
,
int64_t
*
value
);
bool
ReadUint8
(
IpcIo
*
io
,
uint8_t
*
value
);
bool
ReadUint16
(
IpcIo
*
io
,
uint16_t
*
value
);
bool
ReadUint32
(
IpcIo
*
io
,
uint32_t
*
value
);
bool
ReadUint64
(
IpcIo
*
io
,
uint64_t
*
value
);
bool
ReadFloat
(
IpcIo
*
io
,
float
*
value
);
bool
ReadDouble
(
IpcIo
*
io
,
double
*
value
);
uintptr_t
ReadPointer
(
IpcIo
*
io
);
bool
ReadBoolUnaligned
(
IpcIo
*
io
,
bool
*
value
);
bool
ReadInt8Unaligned
(
IpcIo
*
io
,
int8_t
*
value
);
bool
ReadInt16Unaligned
(
IpcIo
*
io
,
int16_t
*
value
);
bool
ReadUInt8Unaligned
(
IpcIo
*
io
,
uint8_t
*
value
);
bool
ReadUInt16Unaligned
(
IpcIo
*
io
,
uint16_t
*
value
);
uint8_t
*
ReadString
(
IpcIo
*
io
,
size_t
*
len
);
bool
WriteString16
(
IpcIo
*
io
,
const
uint16_t
*
value
,
size_t
len
);
bool
WriteBuffer
(
IpcIo
*
io
,
const
void
*
data
,
size_t
size
);
bool
WriteInterfaceToken
(
IpcIo
*
io
,
const
uint16_t
*
name
,
size_t
len
);
bool
WriteRawData
(
IpcIo
*
io
,
const
void
*
data
,
size_t
size
);
bool
WriteBoolVector
(
IpcIo
*
io
,
const
bool
*
val
,
size_t
size
);
bool
WriteInt8Vector
(
IpcIo
*
io
,
const
int8_t
*
val
,
size_t
size
);
bool
WriteInt16Vector
(
IpcIo
*
io
,
const
int16_t
*
val
,
size_t
size
);
bool
WriteInt32Vector
(
IpcIo
*
io
,
const
int32_t
*
val
,
size_t
size
);
bool
WriteInt64Vector
(
IpcIo
*
io
,
const
int64_t
*
val
,
size_t
size
);
bool
WriteUInt8Vector
(
IpcIo
*
io
,
const
uint8_t
*
val
,
size_t
size
);
bool
WriteUInt16Vector
(
IpcIo
*
io
,
const
uint16_t
*
val
,
size_t
size
);
bool
WriteUInt32Vector
(
IpcIo
*
io
,
const
uint32_t
*
val
,
size_t
size
);
bool
WriteUInt64Vector
(
IpcIo
*
io
,
const
uint64_t
*
val
,
size_t
size
);
bool
WriteFloatVector
(
IpcIo
*
io
,
const
float
*
val
,
size_t
size
);
bool
WriteDoubleVector
(
IpcIo
*
io
,
const
double
*
val
,
size_t
size
);
uint16_t
*
ReadString16
(
IpcIo
*
io
,
size_t
*
size
);
uint16_t
*
ReadInterfaceToken
(
IpcIo
*
io
,
size_t
*
size
);
const
uint8_t
*
ReadBuffer
(
IpcIo
*
io
,
size_t
size
);
void
*
ReadRawData
(
IpcIo
*
io
,
size_t
size
);
bool
*
ReadBoolVector
(
IpcIo
*
io
,
size_t
*
size
);
int8_t
*
ReadInt8Vector
(
IpcIo
*
io
,
size_t
*
size
);
int16_t
*
ReadInt16Vector
(
IpcIo
*
io
,
size_t
*
size
);
int32_t
*
ReadInt32Vector
(
IpcIo
*
io
,
size_t
*
size
);
int64_t
*
ReadInt64Vector
(
IpcIo
*
io
,
size_t
*
size
);
uint8_t
*
ReadUInt8Vector
(
IpcIo
*
io
,
size_t
*
size
);
uint16_t
*
ReadUInt16Vector
(
IpcIo
*
io
,
size_t
*
size
);
uint32_t
*
ReadUInt32Vector
(
IpcIo
*
io
,
size_t
*
size
);
uint64_t
*
ReadUInt64Vector
(
IpcIo
*
io
,
size_t
*
size
);
float
*
ReadFloatVector
(
IpcIo
*
io
,
size_t
*
size
);
double
*
ReadDoubleVector
(
IpcIo
*
io
,
size_t
*
size
);
#ifdef __cplusplus
#if __cplusplus
}
...
...
ipc/native/c/manager/src/serializer.c
浏览文件 @
30ce5d05
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录