Block

class iio.Block : iio.IIOObject

Public Functions

Block (BufferStream buf_stream, uint size)
int enqueue (uint bytes_used = 0, bool cyclic = false)
int dequeue (bool nonblock = false)
void fill (byte[] array)

Copy the given array of samples inside the iio.IOBuffer object.

The number of samples written will not exceed the size of the buffer.

Param array:

A byte array containing the samples that should be written.

void read (byte[] array)

Extract the samples from the iio.IOBuffer object.

Param array:

A byte array containing the extracted samples.

IntPtr first (Channel ch)

Gets a pointer to the first sample from the current buffer for a specific channel.

Param ch:

The channel for which to find the first sample.

Public Members

readonly uint size
readonly BufferStream buf_stream