找回密码
 注册
查看: 741|回复: 0

R语言 RProtoBuf包 ZeroCopyInputStream-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-28 20:16:57 | 显示全部楼层 |阅读模式
ZeroCopyInputStream-class(RProtoBuf)
ZeroCopyInputStream-class()所属R语言包:RProtoBuf

                                        Virtual Class "ZeroCopyInputStream"
                                         虚拟类“ZeroCopyInputStream”

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

R wrapper for the ZeroCopyInputStream c++ class
ŕ包装的ZeroCopyInputStream C + +类


类对象----------Objects from the Class----------

This is a virtual class
这是一个虚拟的类


插槽----------Slots----------




pointer: external pointer to the google::protobuf::io::ZeroCopyInputStream object
pointer:外部指针google::protobuf::io::ZeroCopyInputStream对象的


方法----------Methods----------




$ signature(x="ZeroCopyInputStream"): invokes a method
$signature(x="ZeroCopyInputStream"):调用一个方法




Next signature(object="ZeroCopyInputStream"): Get a number of bytes from the stream as a raw vector.
下一步signature(object="ZeroCopyInputStream"):从一个原始的矢量流中的字节数。




Skip signature(object="ZeroCopyInputStream"): skip a number of bytes
跳过signature(object="ZeroCopyInputStream"):跳过的字节数




BackUp signature(object="ZeroCopyInputStream"): Backs up a number of bytes, so that the next call to Next returns data again that was already returned by the last call to Next.
备份signature(object="ZeroCopyInputStream"):备份字节数,这样在下次调用Next再次返回的数据已经返回最后一次调用Next。




ByteCount signature(object="ZeroCopyInputStream"): Returns the total number of bytes read since this object was created.
BYTECOUNT signature(object="ZeroCopyInputStream"):返回读取的字节总数自创建此对象。




ReadRaw signature(object="ZeroCopyInputStream", size = "integer"): read raw bytes from the stream
ReadRaw signature(object="ZeroCopyInputStream", size = "integer"):从流中读取原始字节




ReadString signature(object="ZeroCopyInputStream", size = "integer"): same as ReadRaw but formats the result as a string
ReadString signature(object="ZeroCopyInputStream", size = "integer"):ReadRaw但格式相同的结果为一个字符串




ReadVarint32 signature(object="ZeroCopyInputStream"): Read an unsigned integer with Varint encoding, truncating to 32 bits.
ReadVarint32signature(object="ZeroCopyInputStream"):Varint编码读取一个无符号整数,截断为32位。




ReadLittleEndian32 signature(object="ZeroCopyInputStream"): Read a 32-bit little-endian integer.  
ReadLittleEndian32signature(object="ZeroCopyInputStream"):读一个32位little-endian的整数。




ReadLittleEndian64 signature(object="ZeroCopyInputStream"): Read a 64-bit little-endian integer. In R the value is stored as a double which looses some precision (no other way)
ReadLittleEndian64signature(object="ZeroCopyInputStream"):读一个64位little-endian的整数。 R的值存储为一个double丧失了部分精度(没有其他的方式)




ReadVarint64 signature(object="ZeroCopyInputStream"): Read a 64-bit integer with varint encoding. In R the value is stored as a double which looses some precision (no other way)
ReadVarint64signature(object="ZeroCopyInputStream"):一个64位的整数,varint编码。 R的值存储为一个double丧失了部分精度(没有其他的方式)


(作者)----------Author(s)----------


Romain Francois <francoisromain@free.fr>



参考文献----------References----------

http://code.google.com/apis/protocolbuffers/docs/reference/cpp/google.protobuf.io.zero_copy_stream.html#ZeroCopyInputStream

参见----------See Also----------

TODO: add classes that extend
TODO:添加类扩展

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-26 16:59 , Processed in 0.018772 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表