【问题标题】:Dose GWT support netty ByteBuf?剂量 GWT 是否支持 netty ByteBuf?
【发布时间】:2015-02-21 18:15:13
【问题描述】:

在我的项目中,我只使用nio bytebuffer,因为gwt支持这个,所以我徘徊,剂量gwt支持netty ByteBuf?

<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-buffer</artifactId>
    <version>4.0.25.Final</version>
</dependency>

目前我没有gwt env,但我希望这个项目支持gwt。

顺便说一句,通过comment,bytebuffer和bytebuf很容易相互转换。如果bytebuf的内部只使用bytebuffer,那么在gwt下就没有问题了。

任何人都可以测试这个吗?

【问题讨论】:

    标签: java netty nio bytebuffer


    【解决方案1】:

    据我所知,GWT 仅支持 ByteBuffer,因为它是 Java 本身的一部分。 ByteBuf 是一个属于 Netty 的类。

    【讨论】:

    • netty-buffer 是一个独立的模块。ByteBuf 比 ByteBuffer 更友好。它不绑定到 netty
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多