Class SharedMemory

Definition

Namespace:
Tizen.Security.TEEC
Assembly:
Tizen.Security.TEEC.dll

This type denotes a shared memory block which has been either registered with the implementation or allocated by it.

C#
Copy
public sealed class SharedMemory : IDisposable
Inheritance
object
SharedMemory
Implements
System.IDisposable

Properties

View Source

Address

This property represents the start address of the shared memory block.

Declaration
C#
Copy
public IntPtr Address { get; }
Property Value
Type Description
System.IntPtr
View Source

Size

This property represents the shared memory size in bytes.

Declaration
C#
Copy
public uint Size { get; }
Property Value
Type Description
uint

Methods

View Source

Dispose()

Disposable interface implememtation.

Declaration
C#
Copy
public void Dispose()
View Source

~SharedMemory()

Destructor of the class.

Declaration
C#
Copy
protected ~SharedMemory()
View Source

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
C#
Copy
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.

View Source

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
C#
Copy
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.

Implements

System.IDisposable