G-Node / G-Node/nix-java

Variant/Value: unsigned type support

オープン
#78 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
0
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently we only support signed integer types, because Java traditionally only supported unsigned data types. This changed with Java 8 which added support for unsigned interpretation of data represented by `int`/`long.` See [Java Datatypes][https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html). In Java `Variant`/`Value` bindings we only allow getting the signed types because we call `get()` with a signed argument and if the underlying type is unsigned that will fail in the datatype check. I wonder if it not best to augment `Variant` to better support the bindings by adding a function that allows copying the raw data to a buffer of specified size or something.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

get() を使用する Java Variant/Value バインディング呼び出しから始め、基礎となる Variant データ型チェックと比較します。完了条件は、符号付き型として拒否されることなく unsigned int および long の表現を取得できる、サポートされた方法があることとし、issue で説明されている Java 8 の unsigned ケースをカバーします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
api
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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