FasterXML / FasterXML/jackson-dataformats-binary
Introduce the writePOJO (or writeObject) with the element size
- 主要语言
- Java
- 星标
- 347
- 派生
- 156
- 平均合并
- 3 天 3 小时
- 30 天内合并 PR
- 22
描述
CBOR has some variants to optimize the encoded output size to indicate the length of the elements.
Jackson CBOR generator has been supporting such feature by introducing some public methods.
But, there is no such variant method for **writeObject** or **writePOJO**.
In order to properly generate the optimized output (some implementation forces to optimize the output due to interoperability), it would be better to have such features in the CBOR generator.
So, new API signature seems to be
`public void writePOJO(Object pojo, int elementsToWrite) throws IOException`
or
`public void writePOJO(Object pojo, boolean makeDefiniteLength) throws IOException`
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。