@UnstableApi
class BufferInfo


Contains metadata of a sample ByteBuffer.

Summary

Public constructors

BufferInfo(presentationTimeUs: Long, size: Int, @C.BufferFlags flags: Int)

Creates an instance.

Public properties

Int

The buffer flags, which should be a combination of the C.BUFFER_FLAG_*.

Long

The presentation timestamp of sample (in microseconds).

Int

The amount of data (in bytes) in the buffer.

Public constructors

BufferInfo

BufferInfo(presentationTimeUs: Long, size: Int, @C.BufferFlags flags: Int)

Creates an instance.

Parameters
presentationTimeUs: Long

The presentation timestamp of sample (in microseconds).

size: Int

The amount of data (in bytes) in the buffer.

@C.BufferFlags flags: Int

The buffer flags, which should be a combination of the C.BUFFER_FLAG_*.

Public properties

flags

@C.BufferFlags
val flagsInt

The buffer flags, which should be a combination of the C.BUFFER_FLAG_*.

presentationTimeUs

val presentationTimeUsLong

The presentation timestamp of sample (in microseconds).

size

val sizeInt

The amount of data (in bytes) in the buffer.