Class SharedMemory
Definition
- Assembly:
- Tizen.Security.TEEC.dll
This type denotes a shared memory block which has been either registered with the implementation or allocated by it.
public sealed class SharedMemory : IDisposable
- Inheritance
-
objectSharedMemory
- Implements
-
System.IDisposable
Properties
View SourceAddress
This property represents the start address of the shared memory block.
Declaration
public IntPtr Address { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Size
This property represents the shared memory size in bytes.
Declaration
public uint Size { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
View SourceDispose()
Disposable interface implememtation.
Declaration
public void Dispose()
~SharedMemory()
Destructor of the class.
Declaration
protected ~SharedMemory()
GetData(byte[], int)
This function makes a copy and is designed for convenient operations on small buffers. For large buffers, the direct address should be used.
Declaration
public void GetData(byte[] data, int srcOffs)
Parameters
Type | Name | Description |
---|---|---|
byte[] | data | The destination data buffer to copy data into. |
int | srcOffs | The starting offset in the source shared memory. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The operation is invalid. |
SetData(byte[], int)
This function makes a copy and is designed for convenient operations on small buffers. For large buffers, the direct address should be used.
Declaration
public void SetData(byte[] data, int dstOffs)
Parameters
Type | Name | Description |
---|---|---|
byte[] | data | The source data buffer to copy data from. |
int | dstOffs | The starting offset in the destination shared memory. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The operation is invalid. |