使用以下代码将 Flow_Rate 从“double”转换为字节数组,我收到了输出:[B@6a2b8b42
如何检查输出是否正确?
private double Flow_Rate= 8;
OFVendor of_vendor = new OFVendor();
byte [] rate = ByteBuffer.allocate(8).putDouble(Flow_Rate).array();
of_vendor.setData(rate);
Logger.stderr("ZB---->> ClientChannelWatcher::handleConnectedEvent OFVendor setData() : "+rate);