FasterXML / FasterXML/jackson-dataformats-binary

Introduce the writePOJO (or writeObject) with the element size

オープン
#329 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
cbor
主要言語
Java
スター
347
フォーク
156
平均マージ
3日 3時間
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。