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.
C#Copypublic sealed class SharedMemory : IDisposable
- Inheritance
-
System.ObjectSharedMemory
- Implements
-
System.IDisposable
Properties
Declaration
C#Copypublic IntPtr Address { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
Declaration
C#Copypublic uint Size { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
Methods
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected void Finalize()
View Source
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
C#Copypublic void GetData(byte[] data, int srcOffs)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The destination data buffer to copy data into. |
Int32 | srcOffs | The starting offset in the source shared memory. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The operation is invalid. |
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
View Source
SetData(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
C#Copypublic void SetData(byte[] data, int dstOffs)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The source data buffer to copy data from. |
Int32 | dstOffs | The starting offset in the destination shared memory. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The operation is invalid. |
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
Implements
System.IDisposable