Interface IMediaBuffer
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
Provides functionality to read and write the media buffer.
C#Copypublic interface IMediaBuffer
Properties
Declaration
C#Copybool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool | true if the IMediaBuffer is read-only; otherwise, false. |
Declaration
C#Copybyte this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index of the value to get or set. |
Property Value
| Type | Description |
|---|---|
| byte |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
| System.ObjectDisposedException | The object that owns the current buffer has already been disposed of. |
| System.InvalidOperationException | The buffer is not available, i.e. not writable state. |
Declaration
C#Copyint Length { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Declaration
C#Copyvoid CopyFrom(byte[] source, int startIndex, int length, int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | source | The array to copy from. |
| int | startIndex | The zero-based index in the destination array where copying should start. |
| int | length | The number of elements to copy. |
| int | offset | The zero-based index in the buffer where copying should start. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentOutOfRangeException |
|
| System.ObjectDisposedException | The object that owns the current buffer has already been disposed of. |
| System.InvalidOperationException | The buffer is not available. i.e. not writable state. |
Declaration
C#Copyvoid CopyFrom(byte[] source, int startIndex, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | source | The array to copy from. |
| int | startIndex | The zero-based index in the destination array where copying should start. |
| int | length | The number of elements to copy. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentOutOfRangeException |
|
| System.ObjectDisposedException | The object that owns the current buffer has already been disposed of. |
| System.InvalidOperationException | The buffer is not available. i.e. not writable state. |
Declaration
C#Copyvoid CopyTo(byte[] dest, int startIndex, int length, int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | dest | The array to copy to. |
| int | startIndex | The zero-based index in the source array where copying should start. |
| int | length | The number of array elements to copy. |
| int | offset | The zero-based index in the buffer where copying should start. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentOutOfRangeException |
|
| System.ObjectDisposedException | The object that owns the current buffer has already been disposed of. |
Declaration
C#Copyvoid CopyTo(byte[] dest, int startIndex, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | dest | The array to copy to. |
| int | startIndex | The zero-based index in the source array where copying should start. |
| int | length | The number of array elements to copy. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentOutOfRangeException |
|
| System.ObjectDisposedException | The object that owns the current buffer has already been disposed of. |