在Java中使用ByteBuffer有什么用? [英] What is the use of ByteBuffer in Java?

查看:563
本文介绍了在Java中使用ByteBuffer有什么用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ByteBuffer < Java中的code> ?请列出使用此方法的任何示例方案。谢谢!

What are example applications for a ByteBuffer in Java? Please list any example scenarios where this is used. Thank you!

推荐答案

这个很好地描述了它的用途和缺点。无论何时需要执行快速低级I / O,您基本上都可以使用它。如果您要实现TCP / IP协议,或者如果您正在编写数据库(DBMS),则此类将派上用场。

This is a good description of its uses and shortcomings. You essentially use it whenever you need to do fast low-level I/O. If you were going to implement a TCP/IP protocol or if you were writing a database (DBMS) this class would come in handy.

这篇关于在Java中使用ByteBuffer有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆