Class UnmanagedArray
Summary description for UnmanagedArray.
Inheritance
Implements
Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class UnmanagedArray : Object, IDisposable
Constructors
UnmanagedArray()
Default constructor.
Declaration
public UnmanagedArray()
UnmanagedArray(Int32, Boolean)
Initializes new instance of the array.
Declaration
public UnmanagedArray(int memorySize, bool bZeroMemory)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | memorySize | Memory size in bytes. |
System.Boolean | bZeroMemory | Indicates whether to zero memory. |
Methods
Clear()
Clears current array.
Declaration
public void Clear()
CopyFrom(UnmanagedArray)
Copies memory from source unmanaged array to current unmanaged array.
Declaration
public void CopyFrom(UnmanagedArray source)
Parameters
Type | Name | Description |
---|---|---|
UnmanagedArray | source | Represents source array. |
Dispose()
Disposes this object.
Declaration
public void Dispose()
Finalize()
Frees all allocated resources.
Declaration
protected override void Finalize()
GetByte(Int32)
Returns Byte value from the array.
Declaration
public byte GetByte(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the Byte value in the array. |
Returns
Type | Description |
---|---|
System.Byte | Int32 value from the array. |
GetInt16(Int32)
Returns Int16 value from the array.
Declaration
public int GetInt16(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the Int16 value in the array (offset will be 2 * index). |
Returns
Type | Description |
---|---|
System.Int32 | Int16 value from the array. |
GetInt32(Int32)
Returns Int32 value from the array.
Declaration
public int GetInt32(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the Int32 value in the array (offset will be 4 * index). |
Returns
Type | Description |
---|---|
System.Int32 | Int32 value from the array. |
Resize(Int32, Boolean)
Resizes current array.
Declaration
public void Resize(int iDesiredSize, bool bZeroMemory)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | iDesiredSize | Desired size in bytes. |
System.Boolean | bZeroMemory | Indicates whether to zero memory. |
SetByte(Int32, Byte)
Sets Byte value into the array.
Declaration
public void SetByte(int index, byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the Byte value in the array. |
System.Byte | value | Value to set. |
SetInt16(Int32, Int16)
Sets Int16 value into the array.
Declaration
public void SetInt16(int index, short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the Int16 value in the array (offset will be 2 * index). |
System.Int16 | value | Value to set. |
SetInt32(Int32, Int32)
Sets Int32 value into the array.
Declaration
public void SetInt32(int index, int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the Int32 value in the array (offset will be 4 * index). |
System.Int32 | value | Value to set. |