1、Surface Surface Class Overview Handle onto a raw buffer that is being managed by the screen compositor. 简单翻译: Surface是原始图像缓冲区(raw buffer)的一个句柄,而原始图像 ...
分类:
移动开发 时间:
2016-12-07 20:01:48
阅读次数:
422
封装的一个方法 .h文件中 #import <UIKit/UIKit.h> @protocol LrdOutputViewDelegate <NSObject> @required - (void)didSelectedAtIndexPath:(NSIndexPath *)indexPath; @e ...
分类:
其他好文 时间:
2016-12-07 18:13:27
阅读次数:
348
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
分类:
其他好文 时间:
2016-12-07 09:31:32
阅读次数:
119
首先,整理NIO进行服务端开发的步骤: (1)创建ServerSocketChannel,配置它为非阻塞模式。 (2)绑定监听,配置TCP参数,backlog的大小。 (3)创建一个独立的I/O线程,用于轮询多路复用器Selector。 (4)创建Selector,将之前创建的ServerSocke ...
分类:
Web程序 时间:
2016-12-07 01:36:41
阅读次数:
258
使用Tangram的Marker, 可以在地图上做各种标记, 效果图: Tangram是通过Marker在地图上添加标记的,Marker分Point, Polyline和Polygon三种, 分别对应点、线、面三种几何体。 Tangram使用统一的Marker接口来管理Marker: 我觉得使用统一 ...
分类:
其他好文 时间:
2016-12-07 01:11:49
阅读次数:
250
Computer Systems A Programmer's Perspective Second Edition We have seen that C does not perform any bounds checking for array references, and that loc ...
分类:
其他好文 时间:
2016-12-06 14:28:46
阅读次数:
131
有一次和朋友讨论到net-buffer-length可能对mysqldump导出及恢复有影响,对此测试了一下,发现影响很小,基本可以忽略不计,下面是对比测试结果。说明:执行mysqldump时,netbufferlength的最大上限是16Mb,默认值是1Mb,下面是测试结果贴图:从上面的对比结果可以看出来,该选..
分类:
Web程序 时间:
2016-12-06 04:45:40
阅读次数:
237
SO_RCVBUF SO_SNDBUF TCP socket在内核中都有一个发送缓冲区和一个接收缓冲区,不管进程是否读取socket,对端发来的数据都会经由内核接收并且缓存到socket的内核接收缓冲区之中. read所做的工作,就是把内核缓冲区中的数据拷贝到应用层用户的buffer里面,仅此而已. ...
分类:
其他好文 时间:
2016-12-05 19:23:15
阅读次数:
145
/*每次只写入一行数据 只需要调用特定的方法即可。*/package com.second.File;import java.io.*;/** * Created by hasee on 2016/11/15. */public class WriteFile { private BufferedW ...
分类:
编程语言 时间:
2016-12-05 09:55:26
阅读次数:
253