I have to pass a buffer from one thread to another and I am using bundle.putByteArray (String key, byte[] value) method to do that. My question whether this method copies the whole buffer to another buffer and passes it or just sends the pointer to the array?
If it is copying the whole buffer, I need to avoid this function call as it will be expensive. Please clarify my doubt.
Thanks,
Shamy
See Bundle.java, all it does is insert your key value pair in a standard HashMap. So no, it’s not doing a copy.