Convert float[] to byte[] to float[] again

前端 未结 8 1646
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 15:17

So what I\'m trying to do here is get a float[], convert it to byte[], send it through the network as a datagram packet and then convert it back to

8条回答
  •  天涯浪人
    2020-12-31 15:53

    Byte class has a method floatValue();

    http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Byte.html#floatValue%28%29

提交回复
热议问题