Memcached命令解析一、存储命令存储命令的格式:<commandname><key><flags><exptime><bytes><datablock>参数说明如下:<commandname>Set/add/replace<key>查找关键字<flags>客户机使用它存储关于键值对的额外信息<ex..
分类:
系统相关 时间:
2015-04-21 18:29:03
阅读次数:
179
InUnix/Linux, a
file is a sequence of bytes withoutstructure. Any necessary structure (e.g. for a database) isadded by the programs that manipulate the data in the file. Linuxitself doesn’t know abou...
分类:
系统相关 时间:
2015-04-21 18:11:09
阅读次数:
166
因为在Socket的传输中都是 Bytes 的传输,所以涉及到 Java 基本类型(char、short、int、long)与byte[] 的转化,自己总结了一下,简单的写了一个类。...
分类:
编程语言 时间:
2015-04-20 16:53:24
阅读次数:
172
1. malloc()函数
1.1 malloc的全称是memory allocation,中文叫动态内存分配。
原型:extern void *malloc(unsigned int num_bytes);
说明:分配长度为num_bytes字节的内存块。如果分配成功则返回指向被分配内存的指针,分配失败返回空指针NULL。当内存不再使用时,应使用free()函数将内存块释放。
1....
分类:
其他好文 时间:
2015-04-17 18:24:20
阅读次数:
190
--查询临时表空间select f.tablespace_name,d.file_name "tempfile name",round((f.bytes_free + f.bytes_used) / 1024 /1024, 2) "total mb",round(((f.bytes_free + f...
分类:
其他好文 时间:
2015-04-17 17:34:19
阅读次数:
165
在管理员用户下执行select upper(f.tablespace_name) "表空间名", d.tot_grootte_mb "表空间大小(m)", d.tot_grootte_mb - f.total_bytes "已使用空间(m)", to_cha...
分类:
其他好文 时间:
2015-04-17 17:27:26
阅读次数:
131
oc数据类型的转换
1.NSStringNSData
//NSString->NSData
NSString *s = [NSString new];
s = @"ssss";
NSData *d = [s dataUsingEncoding:NSUTF8StringEncoding];
NSLog(@"data:%s",d.bytes);//ssss
...
分类:
其他好文 时间:
2015-04-16 09:10:49
阅读次数:
199
脚本如下:netflow.sh#!/bin/bash
#
whiletrue;do##死循环
R1=`cat/sys/class/net/eth0/statistics/rx_bytes`##获取eth0的收到流量字节数
T1=`cat/sys/class/net/eth0/statistics/tx_bytes`##获取eht0发送的流量字节数
#
sleep5
R2=`cat/sys/class/net/eth0/statistics/rx_byte..
分类:
数据库 时间:
2015-04-15 23:34:41
阅读次数:
234
两台android设备发送图片。发送端:Socket socket = null; try { socket = new Socket(ip, 8888); byte[] bytes = ScreenCapUtil.ScreenCapToBy...
分类:
编程语言 时间:
2015-04-15 23:09:11
阅读次数:
292
// Create a byte array
byte[] bytes = new byte[10];
// Wrap a byte array into a buffer
ByteBuffer buf = ByteBuffer.wrap(bytes);
// Retrieve bytes between the position and limit
// (see Pu...
分类:
编程语言 时间:
2015-04-14 18:08:02
阅读次数:
203