Sending Part of a Byte Array
Options
Kilbe3
✭
How would someone send only part of a byte array and not the whole thing?
I am using PUN with PunRPC and this method allows me to send an object (the byte array) but I would like to specify some length in bytes to send from that array without the overhead of allocating some smaller byte array and having to copy the subset access to the smaller array.
Do you know how to send only part of an array of bytes?
I am using PUN with PunRPC and this method allows me to send an object (the byte array) but I would like to specify some length in bytes to send from that array without the overhead of allocating some smaller byte array and having to copy the subset access to the smaller array.
Do you know how to send only part of an array of bytes?
0
Comments
-
You may try to implement custom type around array and Photon de/serialization for this type.
But i'm not sure if saving array allocation and copying worth effort.0