Documentation Set for Swarm 2.2
Prev | Reference V. Random Library | Next

# InternalState

## Name

InternalState -- Archiving routines for internal generator and distribution state.

## Description

Methods to save the internal state of an object (generator, distribution) to a memory buffer allocated by the calling program, and to set the state of an object from previously saved state data, provided in a memory buffer.

NOTE: the putStateInto/setStateFrom methods are NOT portable across architectures, since they store integers and doubles using different byte orders. A portable storage method may be provided in the next release.

## Protocols adopted by InternalState

None

## Methods

### Phase: Using

- - (unsigned)getMagic

- - (void)setStateFrom: (void *)buffer

- - (void)putStateInto: (void *)buffer

- - (unsigned)getStateSize
  Specifies the minimum buffer size needed.

Prev | Home | Next
IntegerDistribution | Up | LCG1gen