摘要:
思路:先定义一个长度为4的切片,然后读取长度字符串,并解析长度并保存到变量len,然后定义一个长度为len的切片用于读取json字符串 阅读全文
posted @ 2019-09-11 20:05
wanjingchang
阅读(559)
评论(0)
推荐(1)
摘要:
思路:假如发送100个student数据,每个student都是一个struct,则每个student发送的字符串包含两部分:1、json格式化student字符串 2、json字符串的长度,这个长度用大端保存 注意:先保存长度字符串,然后保存json字符串 阅读全文
posted @ 2019-09-11 20:01
wanjingchang
阅读(192)
评论(0)
推荐(0)
浙公网安备 33010602011771号