Equivalent of PoolByteArray on Java

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JuanCarlos Aguilera

I’m working on an Android plugin and at some point I need to send a PoolByteArray to Java.

What is the equivalent class in Java for PoolByteArray?

:bust_in_silhouette: Reply From: TheWhiteLlama

Since pooling is just a behavior intended to improve performance when allocating data, the equivalent in Java might just be:

byte[] a

or simply a