Class SharedMemory
Definition
- Namespace:
- Tizen.Security.TEEC
- Assembly:
- Tizen.Security.TEEC.dll
- API Level:
- 3
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
-
SharedMemory
- Implements
Properties
View SourceAddress
This property represents the start address of the shared memory block.
Declaration
public IntPtr Address { get; }
Property Value
Type | Description |
---|---|
IntPtr |
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
View SourceSize
This property represents the shared memory size in bytes.
Declaration
public uint Size { get; }
Property Value
Type | Description |
---|---|
UInt32 |
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
Methods
View SourceDispose()
Disposable interface implememtation.
Declaration
public void Dispose()
Finalize()
Destructor of the class.
Declaration
protected void Finalize()
GetData(Byte[], Int32)
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. |
Int32 | srcOffs | The starting offset in the source shared memory. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The operation is invalid. |
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
View SourceSetData(Byte[], Int32)
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. |
Int32 | dstOffs | The starting offset in the destination shared memory. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The operation is invalid. |