RProtoBuf (version 0.4.22)

bytesize-methods: The number of bytes taken by a message

Description

The number of bytes taken by a Message

Arguments

Methods

signature(object = "Message")

The number of bytes the message would take when serialized

Examples

Run this code
	message <- new( tutorial.Person, name = "dddd", email = "eeeeeee", id = 1 )
	bytesize( message )
	# \dontshow{
		stopifnot( all.equal( bytesize(message), length(serialize(message, NULL ) ) ) )
	# }

Run the code above in your browser using DataLab