From 7f9ef66f58a79515a74ea0af430b5df311157414 Mon Sep 17 00:00:00 2001 From: Leigh Date: Sun, 5 Oct 2014 18:07:47 +0000 Subject: [PATCH] New GMP functions and constants in PHP 5.6.1 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335011 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/gmp/constants.xml | 55 +++++++++++++ reference/gmp/functions/gmp-export.xml | 104 ++++++++++++++++++++++++ reference/gmp/functions/gmp-import.xml | 108 +++++++++++++++++++++++++ 3 files changed, 267 insertions(+) create mode 100644 reference/gmp/functions/gmp-export.xml create mode 100644 reference/gmp/functions/gmp-import.xml 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; + + + + + + + + +