]
Nistor Adrian updated IPROTO-89:
--------------------------------
Sprint: DataGrid Sprint #30 (was: DataGrid Sprint #31)
Provide means to calculate serialised message size
--------------------------------------------------
Key: IPROTO-89
URL:
https://issues.jboss.org/browse/IPROTO-89
Project: Infinispan ProtoStream
Issue Type: Enhancement
Affects Versions: 4.2.2.Final
Reporter: Ryan Emerson
Assignee: Nistor Adrian
Priority: Major
Fix For: 4.3.0.Alpha8, 4.3.0.Final
In order to be able to better estimate the size of output buffers etc, it would be useful
to provide a means for a user application to retrieved the anticipated size of a
serialized message from an object's current state. For example, in the protobuf-java
library this is exposed via {{com.google.protobuf.MessageLite#getSerializedSize}}