Language

MediaCodec.BufferInfo.Size Property

Definition

The recorded amount of data in the buffer, in bytes.

[Android.Runtime.Register("size")]
public int Size { get; set; }
[<Android.Runtime.Register("size")>]
member this.Size : int with get, set

Property Value

The recorded number of valid data bytes in the buffer.

Attributes

Remarks

For ordinary codec output buffer metadata, zero indicates an empty buffer, which can carry an end-of-stream marker. A fallback record created by BufferInfos has size zero even when the buffer contains data.

Java documentation for android.media.MediaCodec.BufferInfo.size.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to