diff --git a/reference/gmp/constants.xml b/reference/gmp/constants.xml index 9bbe5fd56a..a0b062eff8 100644 --- a/reference/gmp/constants.xml +++ b/reference/gmp/constants.xml @@ -37,6 +37,61 @@ + + + GMP_MSW_FIRST + (integer) + + + + + + + + + + GMP_LSW_FIRST + (integer) + + + + + + + + + + GMP_LITTLE_ENDIAN + (integer) + + + + + + + + + + GMP_BIG_ENDIAN + (integer) + + + + + + + + + + GMP_NATIVE_ENDIAN + (integer) + + + + + + + GMP_VERSION diff --git a/reference/gmp/functions/gmp-export.xml b/reference/gmp/functions/gmp-export.xml new file mode 100644 index 0000000000..d01ed884e9 --- /dev/null +++ b/reference/gmp/functions/gmp-export.xml @@ -0,0 +1,104 @@ + + + + + gmp_export + Export to a binary string + + + + &reftitle.description; + + stringgmp_export + GMPgmpnumber + integerword_size + integeroptions + + + Export a GMP number to a binary string + + + + + &reftitle.parameters; + + + + gmpnumber + + + The GMP number being exported + + + + + word_size + + + Default value is 1. The number of bytes in each chunk of binary data. This is mainly used in conjunction with the options parameter. + + + + + options + + + Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN. + + + + + + + + + &reftitle.returnvalues; + + Returns a string&return.falseforfailure;. + + + + + &reftitle.examples; + + + <function>gmp_export</function> example + + +]]> + + &example.outputs; + + + + + + + + + diff --git a/reference/gmp/functions/gmp-import.xml b/reference/gmp/functions/gmp-import.xml new file mode 100644 index 0000000000..1c70e57c37 --- /dev/null +++ b/reference/gmp/functions/gmp-import.xml @@ -0,0 +1,108 @@ + + + + + gmp_import + Import from a binary string + + + + &reftitle.description; + + GMPgmp_import + stringdata + integerword_size + integeroptions + + + Import a GMP number from a binary string + + + + + &reftitle.parameters; + + + + data + + + The binary string being imported + + + + + word_size + + + Default value is 1. The number of bytes in each chunk of binary data. This is mainly used in conjunction with the options parameter. + + + + + options + + + Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN. + + + + + + + + + &reftitle.returnvalues; + + Returns a GMP number&return.falseforfailure;. + + + + + &reftitle.examples; + + + <function>gmp_import</function> example + + +]]> + + &example.outputs; + + + + + + + + +