- 博客(4)
- 收藏
- 关注
原创 golang float32/64与[]byte互转
网络协议开发中经常需要将int、float、bool等转为二进制数据,float32、64 与[]byte处理:import ( "encoding/binary" "math")func Float32ToByte(float float32) []byte { bits := math.Float32bits(float) bytes := make(
2016-02-19 10:07:05 23817
转载 memcached binary protocol
IntroductionMemcache is a high performance key-value cache. It is intentionally a dumb cache, optimized for speed only. Applications using memcache should not rely on it for data -- a persistent
2016-02-15 10:32:41 2091
转载 linux c语言 fork() 和 exec 函数的简介和用法
原文:http://blog.csdn.net/nvd11/article/details/8856278假如我们在编写1个c程序时想调用1个shell脚本或者执行1段 bash shell命令, 应该如何实现呢? 其实在 这个头文件中包含了1个调用shell命令或者脚本的函数 system();直接把 shell命令作为参数传入 system函数就可以了,
2016-02-03 14:29:45 13981 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人