public abstract class Buffer extends Object
Constructor and Description |
---|
Buffer() |
Modifier and Type | Method and Description |
---|---|
void |
addFlag(int flag)
Adds the
flag to this buffer's flags. |
void |
clear()
Clears the buffer.
|
void |
clearFlag(int flag)
Removes the
flag from this buffer's flags, if it is set. |
protected boolean |
getFlag(int flag)
Returns whether the specified flag has been set on this buffer.
|
boolean |
isDecodeOnly()
Returns whether the
C.BUFFER_FLAG_DECODE_ONLY flag is set. |
boolean |
isEndOfStream()
Returns whether the
C.BUFFER_FLAG_END_OF_STREAM flag is set. |
boolean |
isKeyFrame()
Returns whether the
C.BUFFER_FLAG_KEY_FRAME flag is set. |
void |
setFlags(int flags)
Replaces this buffer's flags with
flags . |
public void clear()
public final boolean isDecodeOnly()
C.BUFFER_FLAG_DECODE_ONLY
flag is set.public final boolean isEndOfStream()
C.BUFFER_FLAG_END_OF_STREAM
flag is set.public final boolean isKeyFrame()
C.BUFFER_FLAG_KEY_FRAME
flag is set.public final void setFlags(@C.BufferFlags int flags)
flags
.flags
- The flags to set, which should be a combination of the C.BUFFER_FLAG_*
constants.public final void addFlag(@C.BufferFlags int flag)
flag
to this buffer's flags.flag
- The flag to add to this buffer's flags, which should be one of the
C.BUFFER_FLAG_*
constants.public final void clearFlag(@C.BufferFlags int flag)
flag
from this buffer's flags, if it is set.flag
- The flag to remove.protected final boolean getFlag(@C.BufferFlags int flag)
flag
- The flag to check.