ArrayInputStream-class | R Documentation |
A ZeroCopyInputStream backed by an in-memory array of bytes
Objects can be created by the ArrayInputStream function
pointer
: External pointer to the google::protobuf::io::ArrayInputStream
C++ object
Class "ZeroCopyInputStream"
, directly.
See ZeroCopyInputStream
Romain Francois <francoisromain@free.fr>
The ArrayInputStream
class from the protobuf C++ library.
ZeroCopyInputStream for methods
stream <- ArrayInputStream(as.raw(0:10))
stream$ReadRaw(5)
stringsstream <- ArrayInputStream(as.raw(c(0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67)))
stringsstream$ReadString(7)
intstream <- ArrayInputStream(as.raw(c(0x9e, 0xa7, 0x05)))
intstream$ReadVarint32()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.