mike Trienis
12/16/2023, 8:12 PMgetSizeInBytes where RequestEntryT is just a plain old java object (POJO) which is made up of ByteArray, String, Int. I can calculate the size by getting the size of the ByteArray and getting the size of the String using Charsets.UTF_8 and then adding 4 bytes for the Int, but it’s not the same size as when I serialize the POJO using ByteArrayOutputStream and DataOutputStream as there is a little bit of overhead after serialization. So is this okay? I really would prefer to avoid having to serialize the the POJO just to get the size.Yuval Itzchakov
12/16/2023, 8:36 PMDanny Cranmer
12/16/2023, 10:10 PMmike Trienis
12/16/2023, 10:31 PM