Interface IMediaBuffer

Definition

Namespace:
Tizen.Multimedia
Assembly:
Tizen.Multimedia.dll
API Level:
3

Provides functionality to read and write the media buffer.

C#
Copy
public interface IMediaBuffer

Properties

View Source

IsReadOnly

Gets the value indicating whether the IMediaBuffer is read-only.

Declaration
C#
Copy
bool IsReadOnly { get; }
Property Value
Type Description
Boolean

true if the IMediaBuffer is read-only; otherwise, false.

API Level: 4
View Source

Item[Int32]

Gets or sets a value at the specified index.

Declaration
C#
Copy
byte this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index

The index of the value to get or set.

Property Value
Type Description
System.Byte
Exceptions
Type Condition
ArgumentOutOfRangeException

index is less than zero.
-or-
index is equal to or greater than Length.

ObjectDisposedException

The object that owns the current buffer has already been disposed of.

InvalidOperationException

The buffer is not available, i.e. not writable state.

API Level: 4
View Source

Length

Gets the size of the buffer, in bytes.

Declaration
C#
Copy
int Length { get; }
Property Value
Type Description
System.Int32
API Level: 4

Methods

View Source

CopyFrom(Byte[], Int32, Int32)

Copies data from a byte array to the buffer.

Declaration
C#
Copy
void CopyFrom(byte[] source, int startIndex, int length)
Parameters
Type Name Description
System.Byte[] source

The array to copy from.

System.Int32 startIndex

The zero-based index in the destination array where copying should start.

System.Int32 length

The number of elements to copy.

Exceptions
Type Condition
ArgumentNullException

source is null.

ArgumentOutOfRangeException

startIndex or length is not valid.

ObjectDisposedException

The object that owns the current buffer has already been disposed of.

InvalidOperationException

The buffer is not available. i.e. not writable state.

API Level: 3
View Source

CopyFrom(Byte[], Int32, Int32, Int32)

Copies data from a byte array to the buffer.

Declaration
C#
Copy
void CopyFrom(byte[] source, int startIndex, int length, int offset)
Parameters
Type Name Description
System.Byte[] source

The array to copy from.

System.Int32 startIndex

The zero-based index in the destination array where copying should start.

System.Int32 length

The number of elements to copy.

System.Int32 offset

The zero-based index in the buffer where copying should start.

Exceptions
Type Condition
ArgumentNullException

source is null.

ArgumentOutOfRangeException

startIndex, length, or offset is not valid.

ObjectDisposedException

The object that owns the current buffer has already been disposed of.

InvalidOperationException

The buffer is not available. i.e. not writable state.

API Level: 3
View Source

CopyTo(Byte[], Int32, Int32)

Copies data from the buffer to a byte array.

Declaration
C#
Copy
void CopyTo(byte[] dest, int startIndex, int length)
Parameters
Type Name Description
System.Byte[] dest

The array to copy to.

System.Int32 startIndex

The zero-based index in the source array where copying should start.

System.Int32 length

The number of array elements to copy.

Exceptions
Type Condition
ArgumentNullException

dest is null.

ArgumentOutOfRangeException

startIndex or length is not valid.

ObjectDisposedException

The object that owns the current buffer has already been disposed of.

API Level: 4
View Source

CopyTo(Byte[], Int32, Int32, Int32)

Copies data from the buffer to a byte array.

Declaration
C#
Copy
void CopyTo(byte[] dest, int startIndex, int length, int offset)
Parameters
Type Name Description
System.Byte[] dest

The array to copy to.

System.Int32 startIndex

The zero-based index in the source array where copying should start.

System.Int32 length

The number of array elements to copy.

System.Int32 offset

The zero-based index in the buffer where copying should start.

Exceptions
Type Condition
ArgumentNullException

dest is null.

ArgumentOutOfRangeException

startIndex, length, or offset is not valid.

ObjectDisposedException

The object that owns the current buffer has already been disposed of.

API Level: 4