I am trying to make my server run little faster by moving some methodes to the client side. One of these method calls in c#:
for(i=0; i<buffer.Length;i++) {
float j = (float)BitConverter.ToInt16(buffer, i);
// ...
}
is there any equivalent for BitConverter.ToInt16 on javascript side ?
I found this answer , i tried to change the type to match ToInt16 but it did not work , it gives me InvalidArgument.
PS : ashamed