Java或C ++当量preON? [英] Java or C++ equivalents to Preon?

查看:208
本文介绍了Java或C ++当量preON?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

preON 是一个Java库意味着创建二进制codeCS:您只需将标注在一个类的数据成员就其与位域通信,并根据这样的类(位为某些字段中使用的如数字),图书馆建立了一个codeC对象,它是能够创建一个类从二进制输入流中读取其数据的实例。

Preon is a Java library meant for creating binary codecs: you simply place annotations in a class' data members regarding their correspondence with bit fields (e.g. number of bits to use for certain field) and, based on such class, the library builds a Codec object that is able to create instances of the class reading their data from a binary input stream.

由于授权问题(这是GPL协议发布),我不能使用它。

Due to licensing issues (it is distributed under GPL), I cannot use it.

是否有具有同等或类似功能的图书馆,无论是在Java或C ++中?

Are there any libraries with equivalent or similar functionality, either in Java or in C++?

推荐答案

在看许可证页上,preON库是GNU通用公共许可证,版本2,的类路径异常,这是很重要的。这允许您使用二进制形式库的没有的应用程序也正在GPL。

looking at the license page, the preon library is "GNU General Public License, version 2, with the Classpath Exception", which is important. that allows you to use the library in binary form without your application also being GPL.

这篇关于Java或C ++当量preON?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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