1. malloc()函数
1.1 malloc的全称是memory allocation,中文叫动态内存分配。
原型:extern void *malloc(unsigned int num_bytes);
说明:分配长度为num_bytes字节的内存块。如果分配成功则返回指向被分配内存的指针,分配失败返回空指针NULL。当内存不再使用时,应使用free()函数将内存块释放。
1....
分类:
其他好文 时间:
2015-07-15 09:28:02
阅读次数:
88
1、故障现象上面标记显示data池已经满了,现在的单份有效数据是1.3T,三份的总共容量是4T左右,并且已经有24个pg出现了inconsistent现象,说明写已经出现了不一致的故障。2、查看配额通过上图看,target_bytes(改pool的最大存储容量)存储容量虽然是10T,但是max_objects(改p..
分类:
其他好文 时间:
2015-07-14 11:54:23
阅读次数:
808
经过一周的时间,差不多才解决了这个问题一定要记录一下.主要遇到的困难就是png文件在转换为bytes文件后会出现白边的现象c# - How can I programatically load a texture into an Image the same way the Unity Editor...
分类:
编程语言 时间:
2015-07-13 13:41:31
阅读次数:
241
oracle 常用sql语句1、查看表空间的名称及大小select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_sizefrom dba_tablespaces t, dba_data_files dwhere t.tablespace...
分类:
数据库 时间:
2015-07-10 13:17:01
阅读次数:
234
今天在用DicomFile.Open(Stream s)这个接口时,遇到一个异常: DicomIoException: Requested 132 bytes past end of fixed length stream.具体原因我们看下源码就很清楚:public bool Require(uint count, ByteSourceCallback callback, object s...
分类:
其他好文 时间:
2015-07-08 00:40:38
阅读次数:
207
1,check网络[root@localhost ~]# ping -I eth0 11.110.10.138PING 11.110.10.138 (11.110.10.138) from 11.110.10.138eth0: 56(84) bytes of data.64 bytes from 11.110.10.138: icmp_seq=1ttl=64 time=0.023 ms64 byt...
分类:
系统相关 时间:
2015-07-07 22:49:02
阅读次数:
291
当system分区预制过多apk时如果img size超过2G 在make otapackage时会报如下错误
zipfile.LargeZipFile: Zipfile size would require ZIP64 extensions
或
in writestr zinfo.CRC = crc32(bytes) & 0xffffffff # CRC-32 checksu...
分类:
移动开发 时间:
2015-07-07 21:18:13
阅读次数:
498
nginx在列出的默认同意整个文件夹。你怎么转Nginx在文件夹列表功能?打开nginx.conf文件。在location server 要么 http段增加autoindex on;另外两个參数最好也加上去:autoindex_exact_size on;显示出文件的确切大小。单位是bytes。改...
分类:
其他好文 时间:
2015-07-06 19:22:46
阅读次数:
125
【知识点】linux命令: df fdisk mount/unmount【步骤】1. 查看磁盘信息 fdisk -l[root@host-10-14-40-177 dev]# fdisk -l Disk /dev/vda: 4294 MB, 4294967296 bytes 43 heads,...
分类:
系统相关 时间:
2015-07-06 17:30:10
阅读次数:
186
golang自定义数据类型查询与插入postgresql中point数据具体代码如下:package mainimport (
"bytes"
"database/sql"
"database/sql/driver"
"fmt"
_ "github.com/lib/pq"
"strconv"
"strings"
)// 自定义支持类型
type...
分类:
数据库 时间:
2015-07-05 18:32:49
阅读次数:
126