io.netty.buffer.ByteBuf.writeFloatLE()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(169)

本文整理了Java中io.netty.buffer.ByteBuf.writeFloatLE()方法的一些代码示例,展示了ByteBuf.writeFloatLE()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.writeFloatLE()方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:writeFloatLE

ByteBuf.writeFloatLE介绍

[英]Sets the specified 32-bit floating point number at the current writerIndex in Little Endian Byte Order and increases the writerIndex by 4 in this buffer.
[中]在当前writerIndex处以小尾端字节顺序设置指定的32位浮点数,并在此缓冲区中将writerIndex增加4。

代码示例

代码示例来源:origin: apache/incubator-shardingsphere

@Override
  public void write(final MySQLPacketPayload payload, final Object value) {
    payload.getByteBuf().writeFloatLE(Float.parseFloat(value.toString()));
  }
}

代码示例来源:origin: apache/incubator-shardingsphere

@Override
  public void write(final MySQLPacketPayload payload, final Object value) {
    payload.getByteBuf().writeFloatLE(Float.parseFloat(value.toString()));
  }
}

代码示例来源:origin: io.ratpack/ratpack-core

@Override
public ByteBuf writeFloatLE(float value) {
 delegate.writeFloatLE(value);
 return this;
}

相关文章

微信公众号

最新文章

更多

ByteBuf类方法