| ZeroCopyInputStream-class {RProtoBuf} | R Documentation |
Virtual Class "ZeroCopyInputStream"
Description
R wrapper for the ZeroCopyInputStream c++ class
Objects from the Class
This is a virtual class
Slots
pointer:external pointer to the
google::protobuf::io::ZeroCopyInputStreamobject
Methods
- $
signature(x="ZeroCopyInputStream"): invokes a method- Next
signature(object="ZeroCopyInputStream"): Get a number of bytes from the stream as a raw vector.- Skip
signature(object="ZeroCopyInputStream"): skip a number of bytes- BackUp
signature(object="ZeroCopyInputStream"): Backs up a number of bytes, so that the next call toNextreturns data again that was already returned by the last call toNext.- ByteCount
signature(object="ZeroCopyInputStream"): Returns the total number of bytes read since this object was created.- ReadRaw
signature(object="ZeroCopyInputStream", size = "integer"): read raw bytes from the stream- ReadRaw
signature(object="ZeroCopyInputStream", size = "numeric"): read raw bytes from the stream- ReadString
signature(object="ZeroCopyInputStream", size = "integer"): same asReadRawbut formats the result as a string- ReadString
signature(object="ZeroCopyInputStream", size = "numeric"): same asReadRawbut formats the result as a string- ReadVarint32
signature(object="ZeroCopyInputStream"): Read an unsigned integer with Varint encoding, truncating to 32 bits.- ReadLittleEndian32
signature(object="ZeroCopyInputStream"): Read a 32-bit little-endian integer.- ReadLittleEndian64
signature(object="ZeroCopyInputStream"): Read a 64-bit little-endian integer. In R the value is stored as adoublewhich looses some precision (no other way)- ReadVarint64
signature(object="ZeroCopyInputStream"): Read a 64-bit integer with varint encoding. In R the value is stored as adoublewhich looses some precision (no other way)
Author(s)
Romain Francois <francoisromain@free.fr>
References
The google::protobuf::io::ZeroCopyInputStream C++ class.
See Also
TODO: add classes that extend