本文整理了Java中io.netty.buffer.ByteBuf.readFloatLE()
方法的一些代码示例,展示了ByteBuf.readFloatLE()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.readFloatLE()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:readFloatLE
[英]Gets a 32-bit floating point number at the current readerIndexin Little Endian Byte Order and increases the readerIndexby 4 in this buffer.
[中]获取当前readerIndexin Little Endian字节顺序的32位浮点数,并将此缓冲区中的ReaderIndex增加4。
代码示例来源:origin: apache/incubator-shardingsphere
@Override
public Object read(final MySQLPacketPayload payload) {
return payload.getByteBuf().readFloatLE();
}
代码示例来源:origin: apache/incubator-shardingsphere
@Override
public Object read(final MySQLPacketPayload payload) {
return payload.getByteBuf().readFloatLE();
}
代码示例来源:origin: traccar/traccar
position.setLatitude(buf.readFloatLE());
position.setLongitude(buf.readFloatLE());
position.setAltitude(buf.readFloatLE());
position.setSpeed(UnitsConverter.knotsFromKph(buf.readFloatLE()));
position.setCourse(buf.readFloatLE());
代码示例来源:origin: traccar/traccar
position.setLongitude(buf.readFloatLE());
position.setLatitude(buf.readFloatLE());
position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedByte()));
代码示例来源:origin: traccar/traccar
position.setCourse(buf.readFloatLE());
} else {
position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedByte()));
position.setCourse(buf.readUnsignedShortLE());
position.setLongitude(buf.readFloatLE());
position.setLatitude(buf.readFloatLE());
} else if (type == MSG_UPLOAD_POSITION_NEW) {
position.set(Position.PREFIX_TEMP + 1, buf.readShortLE());
position.set(Position.KEY_ODOMETER, buf.readFloatLE());
代码示例来源:origin: traccar/traccar
position.setAltitude(buf.readIntLE() * 0.1);
} else {
position.setLatitude(buf.readFloatLE() / Math.PI * 180);
position.setLongitude(buf.readFloatLE() / Math.PI * 180);
position.setSpeed(UnitsConverter.knotsFromKph(buf.readFloatLE()));
position.setCourse(buf.readUnsignedShortLE());
position.set(Position.KEY_ODOMETER, buf.readFloatLE() * 1000);
position.set(Position.KEY_DISTANCE, buf.readFloatLE() * 1000);
代码示例来源:origin: traccar/traccar
position.setAltitude(buf.readFloatLE());
position.setLongitude(buf.readFloatLE());
position.setLatitude(buf.readFloatLE());
position.setSpeed(UnitsConverter.knotsFromKph(BcdUtil.readInteger(buf, 4) * 0.1));
position.setCourse(buf.readUnsignedShort());
代码示例来源:origin: traccar/traccar
position.set(Position.KEY_STATUS, status);
position.setValid(!BitUtil.check(status, 5));
position.setLatitude(buf.readFloatLE());
position.setLongitude(buf.readFloatLE());
position.setCourse(buf.readUnsignedShortLE() * 0.1);
position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShortLE() * 0.1));
代码示例来源:origin: io.ratpack/ratpack-core
@Override
public float readFloatLE() {
return delegate.readFloatLE();
}
内容来源于网络,如有侵权,请联系作者删除!