Fillrandom, Init – Teledyne LeCroy Automation API for IBTrainer Software Ver.2.0 User Manual

Page 112

Advertising
background image

Classes of the C++ Interface

Methods of the IGCBuffer Class

2-90

CATC IBTrainer InfiniBand Exerciser API Reference

FillRandom

void FillRandom ( ig_size size);

Fills the entire buffer with random values.

None

size

Size of the buffer. It is determined by the number of fill characters.

None

Init

void Init ( ig_size size = 0 );

Initializes the buffer with a certain size. Note that the buffer is still
empty after the call to Init(). (Init() clears the contents of the buffer).

None

size

The size to which the buffer is initialized. Normally, Init() is called to
flush the buffer (ensure it is empty). The initial buffer space is 0, this
can later be expanded as needed. When called with a size other than 0,
the memory is reserved for the specified buffer size. This can make
buffer handling more efficient.

None

Call

Description

Return Value

Input Parameters

See also

Call

Description

Return Value

Input Parameters

See also

Advertising