G
Guest
I have a array of Byte received from a socket.
I need to process that array as fast as it's possible, so ideally I should
be able to use the data from that array instead of creating objects from it.
For example, can I create a String object whose contents are stored in that
array? i.e. I don't want to COPY some bytes from the array into a new object,
but rather, create a object that POINTS to some offset in the array.
Thanks.
PS. Any other approach is welcome, too.
I need to process that array as fast as it's possible, so ideally I should
be able to use the data from that array instead of creating objects from it.
For example, can I create a String object whose contents are stored in that
array? i.e. I don't want to COPY some bytes from the array into a new object,
but rather, create a object that POINTS to some offset in the array.
Thanks.
PS. Any other approach is welcome, too.