You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When binary type is deserialized with org.apache.thrift.TDeserializer, ByteBuffer has a reference to all bytes of the object with position and limit, and all bytes are retrieved when accessed with val.array().
I have no plans to create this PR since I'm not familiar with the scope of impact
I was using the Thrift documentation service and found that Thrift binary was large just for TTEXT
My use case is for storing data in Thrift binary messages in Redis, and it's deserialized again and responded to by Armeria Thrift service
We also use TTEXT for (de)serializing Thrift objects for CMS APIs, but we're aware that it's not really the intended use case of TTEXT. And we don't use binary fields there. So I feel like this kind of change should have minimum impact.
TTEXT
parser of Armeria Thrift is calling values ofbinray
type without reference toposition
andlimit
ofByteBuffer
.org.apache.thrift.TDeserializer
still has the behavior of returningByteBuffer
withposition
andlimit
.When
binary
type is deserialized withorg.apache.thrift.TDeserializer
,ByteBuffer
has a reference to all bytes of the object withposition
andlimit
, and all bytes are retrieved when accessed withval.array()
.The text was updated successfully, but these errors were encountered: