IOLink C# 1.16.1
Loading...
Searching...
No Matches
IOLink.LookUpTable Class Reference

A look-up table. More...

Inheritance diagram for IOLink.LookUpTable:

Public Member Functions

 LookUpTable (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 LookUpTable (DataType dtype, byte[] data, uint count)
 Build a new Look Up Table object from a byte array.
 
void Read< T > (uint offset, T[] dst, uint count)
 Read data from the look-up table.
 
 LookUpTable ()
 Build an empty look-up table.
 
 LookUpTable (DataType dtype, uint count)
 Build an uninitialized look-up table.
 
 LookUpTable (LookUpTable other)
 
DataType Dtype ()
 Get the data type of the look-up table.
 
uint Count ()
 Get the number of values in the look-up table.
 
unsafe void Read (uint offset, byte[] dst, uint count)
 Read data from the look-up table.
 

Static Public Member Functions

static global::System.Runtime.InteropServices.HandleRef getCPtr (LookUpTable obj)
 
static global::System.Runtime.InteropServices.HandleRef swigRelease (LookUpTable obj)
 
static LookUpTable FromArray< T > (DataType dtype, T[] data, uint count)
 Build a new Look Up Table object from an array.
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Protected Attributes

bool swigCMemOwn
 

Detailed Description

A look-up table.

A read only look-up table consisting of a data type, a number of elements, and a buffer of data.

Constructor & Destructor Documentation

◆ LookUpTable() [1/2]

IOLink.LookUpTable.LookUpTable ( DataType  dtype,
byte[]  data,
uint  count 
)
inline

Build a new Look Up Table object from a byte array.

Parameters
dtypeThe data type of the look-up table.
dataThe source buffer to copy data from.
countThe number of values in the look-up table.

◆ LookUpTable() [2/2]

IOLink.LookUpTable.LookUpTable ( DataType  dtype,
uint  count 
)
inline

Build an uninitialized look-up table.

Parameters
dtypeThe data type of the look-up table.
countThe number of values in the look-up table.

Member Function Documentation

◆ FromArray< T >()

static LookUpTable IOLink.LookUpTable.FromArray< T > ( DataType  dtype,
T[]  data,
uint  count 
)
inlinestatic

Build a new Look Up Table object from an array.

Template Parameters
TThe type of the array.
Parameters
dtypeThe data type of the look-up table.
dataThe source buffer to copy data from.
countThe number of values in the look-up table.
Returns
A new LookUpTable object.
Exceptions
System.ArgumentExceptionInvalid data type for LookUpTable

◆ Read()

unsafe void IOLink.LookUpTable.Read ( uint  offset,
byte[]  dst,
uint  count 
)
inline

Read data from the look-up table.

Parameters
offsetThe offset in elements from the beginning of the look-up table.
dstThe destination buffer, where read data will be written.
countThe number of elements to read.
Exceptions
InvalidArgumentWhen the band of data to read is out of bounds.

◆ Read< T >()

void IOLink.LookUpTable.Read< T > ( uint  offset,
T[]  dst,
uint  count 
)
inline

Read data from the look-up table.

Template Parameters
TThe type of the value to read.
Parameters
offsetThe offset in elements from the beginning of the look-up table.
dstThe destination buffer, where read data will be written.
countThe number of elements to read.
Exceptions
System.ArgumentExceptionInvalid data type for LookUpTable

The documentation for this class was generated from the following file: