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.

    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
    public IntPtr Address { get; }
    Property Value
    Type Description
    System.IntPtr
    View Source

    Size

    This property represents the shared memory size in bytes.

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

    Methods

    View Source

    Dispose()

    Disposable interface implememtation.

    Declaration
    public void Dispose()
    View Source

    ~SharedMemory()

    Destructor of the class.

    Declaration
    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
    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
    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
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX