Main Page   Compound List   File List   Compound Members   File Members  

lib/bignum/bignum.h File Reference

Bignumber data type header. More...

#include <gobjconfig.h>
#include <gobj/decls.h>
#include "gmp.h"

Functions

void Gj_bignum_init ()
 Initialize the bignum system.

Gj_BignumGj_bignum_newFromInt (int value)
 Create a new bignum from an integer.

Gj_BignumGj_bignum_create (Gj_Ctx* ctx, Gj_Stream* stream)
 Create bignum from a stream. More...

Gj_BignumGj_bignum_duplicate (Gj_Bignum* num)
 Dupliate a bignum.

void Gj_bignum_delete (Gj_Bignum* num)
 Delete a bignum.

int Gj_bignum_write (Gj_Ctx* ctx, Gj_Bignum* num, Gj_Stream* stream)
 Write a bignum to a stream. More...


Detailed Description

Bignumber data type header.


Function Documentation

Gj_Bignum * Gj_bignum_create ( Gj_Ctx * ctx,
Gj_Stream * stream )
 

Create bignum from a stream.

Returns:
The pointer to the bignum on success, 0 otherwise.

int Gj_bignum_write ( Gj_Ctx * ctx,
Gj_Bignum * num,
Gj_Stream * stream )
 

Write a bignum to a stream.

Returns:
0 on success, -1 otherwise.


Generated at Fri Aug 17 18:28:56 2001 for Gobj by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000