File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -672,11 +672,13 @@ Export API
672
672
673
673
.. c:member:: uint8_t bits_per_digit
674
674
675
- Bits per digit.
675
+ Bits per digit. For example, a 15 bit digit means that bits 0-14 contain
676
+ meaningful information.
676
677
677
678
.. c:member:: uint8_t digit_size
678
679
679
- Digit size in bytes.
680
+ Digit size in bytes. For example, a 15 bit digit will require at least 2
681
+ bytes.
680
682
681
683
.. c:member:: int8_t digits_order
682
684
@@ -780,6 +782,8 @@ The :c:type:`PyLongWriter` API can be used to import an integer.
780
782
*ndigits * is the number of digits in the *digits * array. It must be
781
783
greater than 0.
782
784
785
+ *digits * must not be NULL.
786
+
783
787
The caller can either initialize the array of digits *digits * and then
784
788
either call :c:func: `PyLongWriter_Finish ` to get a Python :class: `int ` or
785
789
:c:func: `PyLongWriter_Discard ` to destroy the writer instance. Digits must
You can’t perform that action at this time.
0 commit comments