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#
Copy
public sealed class SharedMemory : IDisposable
Inheritance
SharedMemory

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
IntPtr
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
View Source

Size

This property represents the shared memory size in bytes.

Declaration
C#
Copy
public UInt32 Size { get; }
Property Value
Type Description
UInt32
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client

Methods

View Source

Dispose()

Disposable interface implememtation.

Declaration
C#
Copy
public void Dispose()
View Source

Finalize()

Destructor of the class.

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

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

API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client

Extension Methods